Constructor
new Memo(hash, message, signing_address, signatureopt, version_signopt)
Creates a Memo
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
hash |
string | 64-hex string representing a Nano block hash | ||
message |
string | message of memo | ||
signing_address |
string | Nano address that owns block with hash | ||
signature |
string |
<optional> |
128-hex string signature of memo | |
version_sign |
number |
<optional> |
version.sign | version of signing algorithm - Versioning not yet implemented |
- Source:
Members
is_encrypted
Getter for is_encrypted
- Source:
signing_public_key
Getter for signing_public_key
- Source:
valid_signature
Getter for valid_signature
- Source:
Methods
sign(signing_private_key, version_signopt) → {string}
Calculates and signs the memo
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
signing_private_key |
string | 64-hex private key of Nano Account that owns the memo | |
version_sign |
number |
<optional> |
version of signing algorithm - Versioning not yet implemented |
- Source:
Returns:
128-hex signature
- Type
- string