Interface Ed25519PublicKey

interface Ed25519PublicKey {
    raw: Uint8Array;
    type: "Ed25519";
    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: "Ed25519"

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>