libp2p
    Preparing search index...

    Interface Secp256k1PublicKey

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

    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>