OpenAgentIDDocumentation
API referencenpm packages@openagentid/oas-vanilla
OpenAgentIDAPI reference

@openagentid/oas-vanilla/crypto

API contract shipped by @openagentid/oas-vanilla 1.0.2. Exact exports, signatures, dependencies and availability.

All packages · Runnable examples · Start an agent

ContractValue
Package@openagentid/oas-vanilla@1.0.2
Entry point@openagentid/oas-vanilla/crypto
AvailabilityPublished package
Reference sourcePublished JavaScript and JSDoc (inferred types)
Package enginesnode >=20.0.0

Before integrating

Publishes JavaScript with JSDoc, not TypeScript declarations. Inferred signatures are labeled separately.

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.

This package ships JavaScript with JSDoc, not .d.ts files. The signatures below are inferred from that published source. An inferred any reflects missing type information in the package.

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
default./src/crypto/keypair.js

Exports

ExtendedPoint

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

Signature
type ExtendedPoint = { x: bigint; y: bigint; z: bigint; t: bigint; };

Source: @openagentid/oas-vanilla@1.0.2, src/crypto/keypair.js:68.

OasKeyPair

An Ed25519 keypair for an OAS entity.

Holds both the signing (private) and verifying (public) keys. Custom toString/toJSON redact private key material.

OAS Spec §11.2 -- All entity keys MUST be Ed25519

Signature
declare class OasKeyPair {
  constructor(signingKey: Uint8Array<ArrayBufferLike>, verifyingKey: Uint8Array<ArrayBufferLike>);
  static generate(): Promise<OasKeyPair>;
  static fromSigningKeyBytes(bytes: Uint8Array): Promise<OasKeyPair>;
  static verifyWithKey(publicKeyBytes: Uint8Array, message: Uint8Array, signatureBytes: Uint8Array): Promise<void>;
  _signingKey: Uint8Array<ArrayBufferLike>;
  _verifyingKey: Uint8Array<ArrayBufferLike>;
  sign(message: Uint8Array): Promise<Uint8Array>;
  signingKeyBytes(): Uint8Array;
  verifyingKeyBytes(): Uint8Array;
  publicKeyMultibase(): string;
  destroy(): void;
  toString(): string;
  toJSON(): object;
}

Source: @openagentid/oas-vanilla@1.0.2, src/crypto/keypair.js:361.

Package requirements

This version declares no dependencies or peer dependencies.

Archive verification

Pinned integrity:

SHA-512 integrity
sha512-66sPTWDxCcQ55S9YvPbk4BxF8c92CNqAHOUv7jp1uC+3ygYzZKf5dbvK2/rQwvhP+3oi7T3n1Zn1K1PK99zvMQ==

Machine-readable API manifest · Coverage

On this page