@blockchaincommons/components - v1.0.0-beta.4
    Preparing search index...

    Interface SshAgent

    What a key-derivation lock/unlock needs from an SSH agent (the reference's SSHAgent trait, asynchronous here).

    An implementation reports its own failures as a ComponentsError; a failure to sign is reported by the caller as SSH agent refused to sign whatever the implementation threw.

    interface SshAgent {
        listIdentities(): Promise<readonly SSHPublicKey[]>;
        sign(
            identity: SSHPublicKey,
            data: Uint8Array,
        ): Promise<Uint8Array<ArrayBufferLike>>;
    }

    Implemented by

    Index
    • The raw signature bytes (for Ed25519 the 64-byte signature) over data.

      Parameters

      Returns Promise<Uint8Array<ArrayBufferLike>>