@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
| Contract | Value |
|---|---|
| Package | @openagentid/aegis-sdk@0.1.1 |
| Entry point | @openagentid/aegis-sdk/wallet |
| Availability | Published package |
| Reference source | Published TypeScript declarations |
| Package engines | node >=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.
| Condition | Published file |
|---|---|
| types | ./dist/wallet/index.d.ts |
| import | ./dist/wallet/index.js |
Exports
AddressDeriverAuthorizedTransaction— typeDirectSignermakeTransactionSigningBackend— typeSigningRequest— typeSigningResult— typeTransaction— typeTransactionPipelineverifySignatureWalletAddress— type
AddressDeriver
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.
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.
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
type SigningMode = "direct" | "mpc" | "tee" | "external";Source: @openagentid/aegis-sdk@0.1.1, dist/types-Ck8QCcs2.d.ts:183.
Package requirements
Dependencies
| Package | Published range |
|---|---|
| uuid | ^11.0.0 |
| zod | ^3.23.0 |
Archive verification
Pinned integrity:
sha512-eKG79P17teM8i+ZQaNdBEPJnL0XT9723i04kDxgVRrOb0VOnNW5rt2doLq8g4mHBZ4rjHdPEuzZmj5LsL4iuVw==