npm.io
2.1.0 • Published 4 months ago

@midnightntwrk/wallet-sdk-abstractions

Licence
Apache-2.0
Version
2.1.0
Deps
1
Size
27 kB
Vulns
0
Weekly
0
Stars
15

@midnightntwrk/wallet-sdk-abstractions

Domain-specific abstractions for the Midnight Wallet SDK.

Installation

npm install @midnightntwrk/wallet-sdk-abstractions

Overview

This package provides core types and interfaces used throughout the Midnight Wallet SDK. It defines the fundamental abstractions for:

  • Network identification
  • Protocol state and versioning
  • Wallet seeds and state management
  • Transaction serialization

Exports

NetworkId

Network identifier types for distinguishing between different Midnight networks (e.g., mainnet, testnet).

ProtocolState

Types representing the current state of the Midnight protocol.

ProtocolVersion

Version information for protocol compatibility.

WalletSeed

Abstractions for wallet seed management and derivation.

WalletState

Types representing the internal state of a wallet instance.

SerializedTransaction

Types for serialized transaction data that can be stored or transmitted.

SerializedUnprovenTransaction

Types for unproven transaction serialization before ZK proofs are generated.

License

Apache-2.0