Wallet modules for Cosmos Network - AssetMantle Different modules to help you integrate many features including off-chain verification, transfer of tokens, custodial wallet.
- Install dependencies -
go get ./...
- Set up
.env
file for the modules you want to start - Run
go run main.go
o
prefix is used where there might be conflict, for e.g. package names like errorso, logo
This module consist of methods which are used to manage custodial wallet with postgres data base
It contains methods such as GenerateMnemonic()
, GetPrivKey(mnemonic string)
and Transfer(p *TransferParams)
This module consist of methods which are used to manage the off-chain verification of user using signatures mostly signed with ADR036
for example keplr.signArbitrary
This modules contains integration with postgres so verfication can be completed in two steps which are
- Request for challenge
- The user passes his wallet address and gets flow ID and EULA to sign
- Sign the challenge
- The user signs the challenge by using
signArbitrary
such that message will be EULA+Flow ID - The signature obtained is then send along with the public key
After this steps if the signature is valid then user receives the PASETO token.