Skip to content
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

Cannot sign data with DRep PubKey hash #1514

Open
reeshavacharya opened this issue Nov 5, 2024 · 1 comment
Open

Cannot sign data with DRep PubKey hash #1514

reeshavacharya opened this issue Nov 5, 2024 · 1 comment

Comments

@reeshavacharya
Copy link

Steps to reproduce

  • enable lace cip95 wallet in the browser console
lace = await window.cardano.lace.enable({extensions: [{cip: 95,},],})
  • get your drep Public Key
await lace.cip95.getPubDRepKey()
  • obtain the dRep Pub Key Hash
import { blake2bHex } from "blakejs";
const drepPubKeyHash = blake2bHex(Buffer.from(dRepPubKey, "hex"), undefined, 28);
  • use the pubKey hash to sign the data
await lace.signData('02e2c71f20b18de66fda797c42549d7318a4e6345aefabf4805a5df8', '6869')

There must be a cip95 instance to sign data.
eg: await lace.cip95.signData('02e2c71f20b18de66fda797c42549d7318a4e6345aefabf4805a5df8', '6869')

Expected

  • wallet should be able to sign the data with dRep public key as wallets like eternl and yoroi are able to

Observed

  • ERROR : "Invalid argument 'data': Base address data length should be 57 bytes long."
@input-output-hk input-output-hk deleted a comment from SmithDEVV Nov 9, 2024
@rhyslbw
Copy link
Member

rhyslbw commented Nov 12, 2024

Thanks for the report @reeshavacharya. Is this directly impacting a particular DApp or did you discover this during testing of a library or similar? This will help determine the priority for us to fix, but we'll also happily accept a contribution too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants