-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accept signature
value as sg_
-prefixed string
#240
Comments
Could you please share some hypothetical API examples? |
Recently on sdk side I've added
const preclaimSig = await aeSdk.signDelegationToContract(contractAddress);
const preclaimSigDecoded = decode(preclaimSig);
await contract.signedPreclaim(owner, decode(commitmentHash(name, salt)), preclaimSigDecoded); On sdk side I started to encode signatures as |
Okay, but doesn't this apply to all "API encoded" data? Accounts etc. ? |
I think it does. Account address already everywhere encoded as ak_ strings 🤷♀️ |
Currently in readme
#001234d
BigInt("0x001234d")
I propose to add an alternative way to provide signatures as defined in aeserialization https://github.com/aeternity/aeserialization/blob/270ebecc577f7043a0c5d771538a33a9c8040f48/src/aeser_api_encoder.erl#L222
The text was updated successfully, but these errors were encountered: