Cardano Example Dapp
Cryptographic Functions
This demo will test and explore cryptographic functions
Try it online:
- Visit HTML+JS Dapp
- Visit HTML+React Dapp
- Visit Native HTML dapp
- Run Run in Wallet…Open in IDE…
Source code:
- dapp connection code: GCScript DSL
- frontend (using @gamechanger-finance/gc): HTML+JS dapp
- frontend (using @gamechanger-finance/gc): HTML+React dapp
- frontend (without official library): Native HTML dapp
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
Resources
- How to connect?
- Docs and examples on Github
- GCScript documentation
- Playground IDE in GameChanger Wallet
- Tutorials on Youtube
- Support on Discord
- News on Twitter
- Website
License
MIT
