Constructor
new NemFacade(nemNetworkName)
Creates a NEM facade.
Parameters:
Name | Type | Description |
---|---|---|
nemNetworkName |
string | NEM network name. |
- Source:
Methods
(static) bip32NodeToKeyPair(bip32Node) → {KeyPair}
Derives a NEM KeyPair from a BIP32 node.
Parameters:
Name | Type | Description |
---|---|---|
bip32Node |
Bip32Node | BIP32 node. |
- Source:
Returns:
Derived key pair.
- Type
- KeyPair
hashTransaction(transaction) → {Hash256}
Hashes a NEM transaction.
Parameters:
Name | Type | Description |
---|---|---|
transaction |
object | Transaction object. |
- Source:
Returns:
Transaction hash.
- Type
- Hash256
signTransaction(keyPair, transaction) → {Signature}
Signs a NEM transaction.
Parameters:
Name | Type | Description |
---|---|---|
keyPair |
KeyPair | Key pair. |
transaction |
object | Transaction object. |
- Source:
Returns:
Transaction signature.
- Type
- Signature
verifyTransaction(transaction, signature) → {boolean}
Verifies a NEM transaction.
Parameters:
Name | Type | Description |
---|---|---|
transaction |
object | Transaction object. |
signature |
Signature | Signature to verify. |
- Source:
Returns:
true if transaction signature is verified.
- Type
- boolean