diff options
Diffstat (limited to 'contrib/hexToCrock.mjs')
-rw-r--r-- | contrib/hexToCrock.mjs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/contrib/hexToCrock.mjs b/contrib/hexToCrock.mjs deleted file mode 100644 index e5c10b3..0000000 --- a/contrib/hexToCrock.mjs +++ /dev/null @@ -1,9 +0,0 @@ -import { encodeCrock } from './wallet-core/packages/taler-util/lib/index.js' - -const hex = process.argv[2]; - -const typedArray = new Uint8Array(hex.match(/[\da-f]{2}/gi).map(function (h) { - return parseInt(h, 16) -})) - -console.log(encodeCrock(typedArray)); |