Skip to main content

Cardano Example Dapp

Cryptographic Functions​

This demo will test and explore cryptographic functions

Try it online:​

Source code:​

Dapp code was autogenerated by Playground IDE in GameChanger Wallet

GCScript code (dapp connection):​

{
"title": "Cryptographic Functions",
"description": "This demo will test and explore cryptographic functions",
"type": "script",
"args": {
"message-to-hash": "⚡ GC Wallet"
},
"exportAs": "CryptoDemo",
"returnURLPattern": "http://localhost:3000/demo/api/dapp",
"run": {
"payload": {
"type": "macro",
"run": "{get('args.message-to-hash')}"
},
"bytes": {
"type": "macro",
"run": "{hexToByteArray(strToHex(get('cache.payload')))}"
},
"using_utf8": {
"type": "macro",
"run": {
"sha512": "{sha512(get('cache.payload'))}",
"sha256": "{sha256(get('cache.payload'))}",
"sha1": "{sha1(get('cache.payload'))}",
"md5": "{md5(get('cache.payload'))}"
}
},
"using_bytes": {
"type": "macro",
"run": {
"sha512": "{sha512(get('cache.bytes'))}",
"sha256": "{sha256(get('cache.bytes'))}",
"sha1": "{sha1(get('cache.bytes'))}",
"md5": "{md5(get('cache.bytes'))}"
}
},
"uuid": {
"type": "macro",
"run": "{uuid()}"
}
}
}

Run standalone QR dapp connection:​

You can use Playground IDE in GameChanger Wallet in QR URL Transport mode to capture results

This GCScript/URL is too large! make it shorter uploading parts to GCFS. Unable to generate QR code

Resources​

License​

MIT