Skip to main content

signCip30CoseData

export function signCip30CoseData(
  address: ShelleyAddress<PubKeyHash>,
  privateKey: Bip32PrivateKey,
  payload: BytesLike
): Cip30CoseSign1

Low-level signing method for creating a valid Cip30CoseSign1 data-structure Doesn't check that the address actually corresponds to the given privateKey

Arguments

1. address

address: ShelleyAddress<PubKeyHash>

2. privateKey

privateKey: Bip32PrivateKey

3. payload

payload: BytesLike

Returns

Cip30CoseSign1