Interface Secp256k1PublicKey

interface Secp256k1PublicKey {
    raw: Uint8Array;
    type: "secp256k1";
    equals(key?): boolean;
    toCID(): CID<unknown, 114, 0, 1>;
    toMultihash(): MultihashDigest<0>;
    toString(): string;
    verify(data, sig): boolean | Promise<boolean>;
}

Properties

The raw public key bytes

type: "secp256k1"

The type of this key

Methods

  • Return this public key as a CID encoded with the libp2p-key codec

    The digest contains an identity hash containing the protobuf wrapped version of the public key.

    Returns CID<unknown, 114, 0, 1>