Skip to main content
Version: 0.4.9

wallet.cip30interface.signdata

Home > @blaze-cardano/wallet > CIP30Interface > signData

CIP30Interface.signData() method

Request's a user's signature for a given payload conforming to the [CIP-0008 signing spec](https://github.com/cardano-foundation/CIPs/blob/master/CIP-0008/README.md)

Signature:

signData(address: string, payload: string): Promise<{
signature: string;
key: string;
}>;

Parameters

Parameter

Type

Description

address

string

The address to sign the payload with. The payment key is used for base, enterprise, and pointer addresses. The staking key is used for reward addresses.

payload

string

The payload to sign.

Returns:

Promise<{ signature: string; key: string; }>

{Promise<{ signature: string; key: string }>} - The hex-encoded CBOR bytes of the signature and public key parts of the signing-key.