Type definitions and interfaces for Guardian Wallet.
Zero-dependency package that defines the contracts all Guardian packages implement. Contains TypeScript interfaces, type definitions, and enums -- no runtime code.
npm install @agentokratia/guardian-core| Interface | Purpose |
|---|---|
IThresholdScheme |
MPC signing scheme (DKG, signing rounds, aux info) |
IChain |
Chain adapter (build tx, decode, broadcast, balance) |
IVaultStore |
Secret storage (store/retrieve/delete shares) |
IShareStore |
Generic share persistence |
IPolicyEngine |
Policy evaluation engine |
IRulesEngine |
Rules-based policy evaluation |
IKmsProvider |
Key management service abstraction |
| Type | Purpose |
|---|---|
Share, ShareFile, KeyMaterial |
Key share structures |
Signer |
Signer entity (address, status, metadata) |
SigningRequest |
Transaction/message signing request |
Policy, PolicyRule, PolicyDocument |
Policy definitions with 9 criterion types |
TransactionRequest, DecodedAction |
Transaction building and decoding |
DKGState, EncryptedEnvelope |
DKG ceremony and encryption types |
SchemeName, CurveName, ChainName, NetworkName, SignerType, SignerStatus, SigningPath, PolicyType, RequestStatus, RequestType
import { SignerStatus, PolicyType } from '@agentokratia/guardian-core';
import type { IThresholdScheme, Share, Policy } from '@agentokratia/guardian-core';@agentokratia/guardian-core imports nothing. All other Guardian packages depend on it.
core -> imports NOTHING
schemes -> imports core
chains -> imports core
signer -> imports core, schemes
server -> imports core, schemes, chains
Apache-2.0 -- see LICENSE-APACHE.