Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/lucid/src/core/wasm_modules/cardano_message_signing_web/cardano_message_signing.d.ts>COSESign1

Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.
Very Popular
Go to Latest
class COSESign1
import { COSESign1 } from "https://deno.land/x/lucid@0.7.8/src/core/wasm_modules/cardano_message_signing_web/cardano_message_signing.d.ts";

Methods

free(): void
payload(): Uint8Array | undefined
signature(): Uint8Array
signed_data(external_aad?: Uint8Array, external_payload?: Uint8Array): SigStructure

For verifying, we will want to reverse-construct this SigStructure to check the signature against

Arguments

  • external_aad - External application data - see RFC 8152 section 4.3. Set to None if not using this.
to_bytes(): Uint8Array

Static Methods

from_bytes(bytes: Uint8Array): COSESign1
new(
headers: Headers,
payload: Uint8Array | undefined,
signature: Uint8Array,
): COSESign1