OpenAgentIDDocumentation
API referencenpm packages@openagentid/aegis-sdk
OpenAgentIDAPI reference

@openagentid/aegis-sdk/wallet

API contract shipped by @openagentid/aegis-sdk 0.1.1. Exact exports, signatures, dependencies and availability.

All packages · Runnable examples · Start an agent

ContractValue
Package@openagentid/aegis-sdk@0.1.1
Entry point@openagentid/aegis-sdk/wallet
AvailabilityPublished package
Reference sourcePublished TypeScript declarations
Package enginesnode >=20

This reference is generated from the integrity-verified npm archive for this exact version. Signatures describe the public contract; they are not standalone programs. Complete examples are checked separately.

Import conditions

Use the public entry point above. The package resolves it to these shipped files; do not import its internal files directly.

ConditionPublished file
types./dist/wallet/index.d.ts
import./dist/wallet/index.js

Exports

AddressDeriver

Signature
declare class AddressDeriver {
    static derivationPath(chain: Chain, account: number, index: number): string;
    static deriveAddress(chain: Chain, publicKeyBytes: Uint8Array): WalletAddress;
    static deriveAll(publicKeyBytes: Uint8Array, chains: readonly Chain[]): WalletAddress[];
}

Source: @openagentid/aegis-sdk@0.1.1, dist/wallet/index.d.ts:11.

AuthorizedTransaction

Type-only declaration; it is not a runtime value.

Signature
interface AuthorizedTransaction {
    transaction: Transaction;
    signature: Uint8Array;
    fulfilledObligations: string[];
}

Source: @openagentid/aegis-sdk@0.1.1, dist/pipeline-u2tQgstP.d.ts:50.

DirectSigner

Direct signing backend using a single Ed25519 key.

The signing key is stored in memory; callers should treat the instance as sensitive material and zeroize when done.

Signature
declare class DirectSigner implements SigningBackend {
    constructor(signingKey: Uint8Array);
    sign(request: SigningRequest): Promise<SigningResult>;
    publicKey(): Uint8Array;
    mode(): SigningMode;
}

Source: @openagentid/aegis-sdk@0.1.1, dist/pipeline-u2tQgstP.d.ts:24.

makeTransaction

Signature
declare function makeTransaction(params: {
    fromDid: string;
    to: string;
    chain: string;
    data: Uint8Array;
    value?: string | null;
}): Transaction;

Source: @openagentid/aegis-sdk@0.1.1, dist/pipeline-u2tQgstP.d.ts:43.

SigningBackend

Type-only declaration; it is not a runtime value.

Signature
interface SigningBackend {
    sign(request: SigningRequest): Promise<SigningResult>;
    publicKey(): Uint8Array;
    mode(): SigningMode;
}

Source: @openagentid/aegis-sdk@0.1.1, dist/pipeline-u2tQgstP.d.ts:13.

SigningRequest

Type-only declaration; it is not a runtime value.

Signature
interface SigningRequest {
    message: Uint8Array;
    signerDid: string;
    chain?: Chain | null;
}

Source: @openagentid/aegis-sdk@0.1.1, dist/pipeline-u2tQgstP.d.ts:3.

SigningResult

Type-only declaration; it is not a runtime value.

Signature
interface SigningResult {
    signature: Uint8Array;
    publicKey: Uint8Array;
    mode: SigningMode;
}

Source: @openagentid/aegis-sdk@0.1.1, dist/pipeline-u2tQgstP.d.ts:8.

Transaction

Type-only declaration; it is not a runtime value.

Signature
interface Transaction {
    txId: string;
    fromDid: string;
    to: string;
    chain: string;
    data: Uint8Array;
    value?: string | null;
}

Source: @openagentid/aegis-sdk@0.1.1, dist/pipeline-u2tQgstP.d.ts:35.

TransactionPipeline

Full transaction authorization pipeline per AEGIS Spec §10.4.

Enforces a strict 5-step process; if any step fails the transaction is NOT signed.

Signature
declare class TransactionPipeline {
    constructor(signer: SigningBackend);
    authorizeAndSign(tx: Transaction, auth: AuthContext, policyDecision: PolicyDecision): Promise<AuthorizedTransaction>;
}

Source: @openagentid/aegis-sdk@0.1.1, dist/pipeline-u2tQgstP.d.ts:61.

verifySignature

Verify an Ed25519 signature against a message and public key.

Signature
declare function verifySignature(publicKey: Uint8Array, message: Uint8Array, signature: Uint8Array): boolean;

Source: @openagentid/aegis-sdk@0.1.1, dist/pipeline-u2tQgstP.d.ts:33.

WalletAddress

Type-only declaration; it is not a runtime value.

Signature
interface WalletAddress {
    chain: Chain;
    address: string;
    derivationPath: string;
    publicKeyHex: string;
}

Source: @openagentid/aegis-sdk@0.1.1, dist/wallet/index.d.ts:5.

Supporting declarations

These package-owned declarations are referenced by the exports above. Their presence here does not make them importable from this entry point. Import only the names in Exports.

AuditInfo

Type-only declaration; it is not a runtime value.

Signature
interface AuditInfo {
    auditId: string;
    timestamp: string;
    engine: string;
    policiesEvaluated: string[];
}

Source: @openagentid/aegis-sdk@0.1.1, dist/types-Ck8QCcs2.d.ts:86.

AuthContext

The output of successful authentication (AEGIS Spec §7.1).

Type-only declaration; it is not a runtime value.

Signature
interface AuthContext {
    provider: string;
    subject: string;
    did?: string | null;
    sessionId?: string | null;
    expiresAt?: string | null;
    claims: Record<string, unknown>;
}

Source: @openagentid/aegis-sdk@0.1.1, dist/types-Ck8QCcs2.d.ts:13.

Chain

Type-only declaration; it is not a runtime value.

Signature
type Chain = "ethereum" | "polygon" | "arbitrum" | "optimism" | "base" | "solana" | "bitcoin" | "cosmos" | "osmosis" | "aptos" | "sui" | "starknet";

Source: @openagentid/aegis-sdk@0.1.1, dist/types-Ck8QCcs2.d.ts:177.

Obligation

Type-only declaration; it is not a runtime value.

Signature
interface Obligation {
    obligationType: ObligationType;
    params: Record<string, unknown>;
    deadline?: string | null;
}

Source: @openagentid/aegis-sdk@0.1.1, dist/types-Ck8QCcs2.d.ts:81.

ObligationType

Type-only declaration; it is not a runtime value.

Signature
type ObligationType = "log" | "notify" | "approve" | "escrow" | "limit";

Source: @openagentid/aegis-sdk@0.1.1, dist/types-Ck8QCcs2.d.ts:80.

PolicyDecision

Type-only declaration; it is not a runtime value.

Signature
interface PolicyDecision {
    allowed: boolean;
    reason?: string | null;
    obligations: Obligation[];
    auditInfo: AuditInfo;
}

Source: @openagentid/aegis-sdk@0.1.1, dist/types-Ck8QCcs2.d.ts:92.

SigningMode

Type-only declaration; it is not a runtime value.

Signature
type SigningMode = "direct" | "mpc" | "tee" | "external";

Source: @openagentid/aegis-sdk@0.1.1, dist/types-Ck8QCcs2.d.ts:183.

Package requirements

Dependencies

PackagePublished range
uuid^11.0.0
zod^3.23.0

Archive verification

Pinned integrity:

SHA-512 integrity
sha512-eKG79P17teM8i+ZQaNdBEPJnL0XT9723i04kDxgVRrOb0VOnNW5rt2doLq8g4mHBZ4rjHdPEuzZmj5LsL4iuVw==

Machine-readable API manifest · Coverage

On this page