Add the following code to your project's shard.yml under:
to use in production
- OR -
development_dependencies to use in development
A Crystal implementation of CIP08 for wallet signature verification on Cardano.
Most common use cases:
dependencies: cardano_cip08: github: wout/cardano-cip08
require "cardano_cip08" cip08 = Cardano::CIP08.new(key, signature) # validate the signature if cip08.signature_valid? # get the message puts cip08.message # get the raw address bytes puts cip09.address_bytes else puts "Invalid signature!" end
Note: In its current state, this library won't look in the headers of the signature, so the COSE key should be provided separately.
address_bech32method (needs a Bech32 implementation for Crystal first)
git checkout -b my-new-feature)
git commit -am 'Add some feature')
git push origin my-new-feature)