Constructors
Properties
StaticBIP32
BIP32: BIP32API = ...
StaticECPair
ECPair: ECPairAPI = ...
Methods
StaticfromPrivateKey
- fromPrivateKey(privateKey, network?): ECPairInterface
Parameters
- privateKey: Uint8Array | Buffer
- network: Network = networks.bitcoin
Returns ECPairInterface
StaticfromPublicKey
- fromPublicKey(publicKey, network?): ECPairInterface
Parameters
- publicKey: Uint8Array | Buffer
- network: Network = networks.bitcoin
Returns ECPairInterface
StaticfromSeed
- fromSeed(seed, network?): BIP32Interface
Parameters
- seed: Buffer
- network: Network = networks.bitcoin
Returns BIP32Interface
StaticfromSeedKeyPair
- fromSeedKeyPair(seed, network?): ECPairInterface
Parameters
- seed: Buffer
- network: Network = networks.bitcoin
Returns ECPairInterface
StaticfromWIF
- fromWIF(wif, network?): ECPairInterface
Parameters
- wif: string
- network: Network = networks.bitcoin
Returns ECPairInterface
StaticgenerateMultiSigAddress
- generateMultiSigAddress(pubKeys, minimumSignatureRequired, network?): string
Parameters
- pubKeys: Buffer[]
- minimumSignatureRequired: number
- network: Network = networks.bitcoin
Returns string
StaticgenerateRandomKeyPair
- generateRandomKeyPair(network?): ECPairInterface
Parameters
- network: Network = networks.bitcoin
Returns ECPairInterface
StaticgenerateWallet
- generateWallet(network?): IWallet
Parameters
- network: Network = networks.bitcoin
StaticgetLegacyAddress
- getLegacyAddress(keyPair, network?): string
Parameters
- keyPair: ECPairInterface
- network: Network = networks.bitcoin
Returns string
StaticgetLegacySegwitAddress
- getLegacySegwitAddress(keyPair, network?): string
Parameters
- keyPair: ECPairInterface
- network: Network = networks.bitcoin
Returns string
StaticgetP2PKAddress
- getP2PKAddress(keyPair, network?): string
Parameters
- keyPair: ECPairInterface
- network: Network = networks.bitcoin
Returns string
StaticgetP2WPKHAddress
- getP2WPKHAddress(keyPair, network?): string
Parameters
- keyPair: ECPairInterface
- network: Network = networks.bitcoin
Returns string
StaticgetTaprootAddress
- getTaprootAddress(keyPair, network?): string
Parameters
- keyPair: ECPairInterface | Signer
- network: Network = networks.bitcoin
Returns string
StaticgetTaprootAddressFromAddress
- getTaprootAddressFromAddress(inAddr, network?): string
Parameters
- inAddr: string
- network: Network = networks.bitcoin
Returns string
StatictweakedPubKeyBufferToAddress
- tweakedPubKeyBufferToAddress(tweakedPubKeyBuffer, network): string
Parameters
- tweakedPubKeyBuffer: Uint8Array | Buffer
- network: Network
Returns string
StatictweakedPubKeyToAddress
- tweakedPubKeyToAddress(tweakedPubKeyHex, network): string
Parameters
- tweakedPubKeyHex: string
- network: Network
Returns string
StatictweakPublicKey
- tweakPublicKey(compressedPubKeyHex): string
Parameters
- compressedPubKeyHex: string
Returns string
- The tweaked public key hex string
StaticverifyContractAddress
- verifyContractAddress(contractAddress, network?): boolean
Parameters
- contractAddress: string
- network: Network = networks.bitcoin
Returns boolean
- Whether the address is valid
StaticverifyPubKeys
- verifyPubKeys(pubKeys, network?): Buffer[]
Parameters
- pubKeys: Buffer[]
- network: Network = networks.bitcoin
Returns Buffer[]
StaticxOnlyTweakedPubKeyToAddress
- xOnlyTweakedPubKeyToAddress(tweakedPubKeyHex, network): string
Parameters
- tweakedPubKeyHex: string
- network: Network
Returns string
Generate a keypair from a private key