Skip to content

Cannot sign data with DRep PubKey hash #1514

@reeshavacharya

Description

@reeshavacharya

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."

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions