Skip to content

ipicoin/wallet-core.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IPI Wallet Core for JavaScript

An experimental JavaScript library for Cosmos-compatible wallet models and operations.

Status: pre-alpha. This package is not ready to protect real assets. Key generation and import, transaction construction, address validation, network responses, and recovery behavior require a documented threat model, compatibility fixtures, independent review, and release controls.

Current surface

The package exports Models and Operations from src/index.mjs. The current tree includes models for wallets, addresses, requests, transactions, and contracts, together with early operations for wallet creation/import, balance queries, address validation, and transfers.

The command below starts a Node.js REPL with the package exposed as IPI:

npm install
npm start

Configure the model layer explicitly before using chain-dependent fields or address validation:

import WalletCore from "wallet-core";

WalletCore.Models.configure({
  chain: {
    chainId: "ipi-test-1",
    chainName: "IPI Test",
    bech32Config: { bech32PrefixAccAddr: "ipi" },
    currencies: [{ coinDenom: "IPI", coinMinimalDenom: "nipi" }],
  },
});

Run the test suite with:

npm test

Security boundaries

Never use test mnemonics or keys for assets of value. Do not commit secrets. Callers must verify chain identity, endpoint trust, denominations, transaction messages, fees, and signer intent. An RPC response is untrusted input and is not independently verified state merely because the client received it.

Security-sensitive findings must use the private reporting process in the IPI security policy.

Road to a supported release

A supported release requires a stable documented API, deterministic fixtures, cross-wallet compatibility tests, audited key handling, dependency and supply-chain controls, signed versioned releases, migration guidance, and an explicit maintenance commitment.

License

Licensed under the MIT License.

About

Pre-alpha JavaScript wallet core for Cosmos-compatible IPI research.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors