@ipshipyard/crypto
    Preparing search index...

    Interface PrivateKey

    interface PrivateKey {
        code: number;
        publicKey: PublicKey;
        type: string;
        sign(
            message: Uint8Array,
            options?: AbortOptions,
        ): Uint8Array<ArrayBuffer> | Promise<Uint8Array<ArrayBuffer>>;
        toJWK(): JsonWebKey;
        toProtobuf(): Uint8Array<ArrayBuffer>;
    }
    Index

    Properties

    code: number

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

    publicKey: PublicKey

    The public key that corresponds to this private key

    type: string

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

    Methods

    • Return this key as a RFC 7517 Json Web Key

      Returns JsonWebKey