bc-web3js
Version:
A Typescript SDK for interacting with the ByteChain Blockchain.
17 lines (16 loc) • 442 B
TypeScript
import Tx from './transaction.js';
declare class Account {
private priv_key;
pub_key: string;
blockchain_addr: string;
constructor(priv_key?: string);
static new(): {
priv_key: string;
pub_key: string;
blockchain_addr: string;
};
static create_pub_key(priv_key: string): string;
static create_blockchain_addr(pub_key: string): string;
sign_tx(tx: Tx): Tx;
}
export default Account;