Module

Cardano.MessageSigning

Implements CIP-8 message signing

#DataSignature

type DataSignature = { key :: CborBytes, signature :: CborBytes }

#signData

signData :: PrivateKey -> Address -> RawBytes -> Effect DataSignature

Sign a given byte string using a private key.

Implements message signing compatible with CIP-30 (CIP-8) signData method.

Use Cardano.Types.PublicKey.verify for signature verification.

Modules