@ipshipyard/crypto
    Preparing search index...

    Interface PublicKey

    interface PublicKey {
        code: number;
        type: string;
        toCID(): CID<unknown, 114, number, 1>;
        toJWK(): JsonWebKey;
        toMultihash(): MultihashDigest;
        toProtobuf(): Uint8Array<ArrayBuffer>;
        verify(
            message: Uint8Array,
            signature: Uint8Array,
            options?: AbortOptions,
        ): boolean | Promise<boolean>;
    }
    Index

    Properties

    code: number

    The code that is used as the Type field in the protobuf representation of the public/private keys

    type: string

    The type of the crypto implementation, e.g. Ed15519

    Methods

    • Return the libp2p-key CID that represents this key

      Returns CID<unknown, 114, number, 1>

    • Return this key as a RFC 7517 Json Web Key

      Returns JsonWebKey