+
+
+
\ No newline at end of file
diff --git a/docs/interfaces/openblockdata.html b/docs/interfaces/openblockdata.html
index 38b0758..fbf2121 100644
--- a/docs/interfaces/openblockdata.html
+++ b/docs/interfaces/openblockdata.html
@@ -918,6 +918,9 @@
MNano
NANO
Nano
hex
knano
nano
raw
Interfaces
Functions
checkAddress
-- check
Address(address: string): boolean
+ - check
Address(address: any): boolean
checkAddress
Parameters
address: string
+address: any
The address to check
Returns boolean-
@@ -1132,7 +1136,7 @@ -
-
@@ -1147,13 +1151,13 @@
checkBalance
-- check
Balance(balance: string): boolean
+ - check
Balance(balance: any): boolean
checkBalance
Parameters
balance: string
+balance: any
The balance to check
Returns boolean-
@@ -1165,7 +1169,7 @@ -
-
@@ -1180,13 +1184,13 @@
checkHash
-- check
Hash(hash: string): boolean
+ - check
Hash(hash: any): boolean
checkHash
Parameters
hash: string
+hash: any
The hash to check
Returns boolean-
@@ -1198,7 +1202,7 @@ -
-
@@ -1213,13 +1217,13 @@
checkKey
-- check
Key(key: string): boolean
+ - check
Key(key: any): boolean
checkKey
Parameters
key: string
+key: any
The key to check
Returns boolean-
@@ -1231,7 +1235,7 @@ -
-
@@ -1246,13 +1250,13 @@
checkSeed
-- check
Seed(seed: string): boolean
+ - check
Seed(seed: any): boolean
checkSeed
Parameters
seed: string
+seed: any
The seed to check
Returns boolean-
@@ -1264,7 +1268,7 @@ -
-
@@ -1279,13 +1283,13 @@
checkSignature
-- check
Signature(signature: string): boolean
+ - check
Signature(signature: any): boolean
checkSignature
Parameters
signature: string
+signature: any
The signature to check
Returns boolean-
@@ -1297,7 +1301,7 @@ -
-
@@ -1318,7 +1322,7 @@ -
@@ -1357,7 +1361,7 @@ -
@@ -1398,7 +1402,7 @@ -
@@ -1439,7 +1443,7 @@ -
@@ -1480,7 +1484,7 @@ -
@@ -1521,7 +1525,7 @@ -
@@ -1556,13 +1560,13 @@
checkWork
-- check
Work(work: string): boolean
+ - check
Work(work: any): boolean
checkWork
Parameters
work: string
+work: any
The work to check
convert
createChangeBlock
createOpenBlock
createReceiveBlock
createSendBlock
createStateBlock
Returns object-
@@ -1579,6 +1583,12 @@
+ -
+
+
+
-
@@ -1628,7 +1638,7 @@ -
@@ -1667,7 +1677,7 @@ -
@@ -1691,7 +1701,7 @@ -
@@ -1730,7 +1740,7 @@ -
@@ -1775,7 +1785,7 @@ -
@@ -1814,7 +1824,7 @@ -
@@ -1859,7 +1869,7 @@ -
@@ -1916,7 +1926,7 @@ -
@@ -1939,7 +1949,7 @@ -
@@ -1962,7 +1972,7 @@ -
@@ -2001,7 +2011,7 @@ -
@@ -2040,7 +2050,7 @@ -
@@ -2085,7 +2095,7 @@ -
diff --git a/docs/interfaces/changeblockdata.html b/docs/interfaces/changeblockdata.html
index 76622de..0a0ce0f 100644
--- a/docs/interfaces/changeblockdata.html
+++ b/docs/interfaces/changeblockdata.html
@@ -929,6 +929,9 @@
-
Convert
Params
+ -
+ Derive
AddressParams
+
-
Open
BlockData
@@ -1067,7 +1070,7 @@ previous: string
@@ -1082,7 +1085,7 @@ representative: string
@@ -1097,7 +1100,7 @@ work: string | null
diff --git a/docs/interfaces/convertparams.html b/docs/interfaces/convertparams.html
index ca3b1a8..6923c12 100644
--- a/docs/interfaces/convertparams.html
+++ b/docs/interfaces/convertparams.html
@@ -926,6 +926,9 @@
+ -
+ Derive
AddressParams
+
-
Open
BlockData
@@ -1063,7 +1066,7 @@ from: NanoUnit
@@ -1078,7 +1081,7 @@ to: NanoUnit
diff --git a/docs/interfaces/deriveaddressparams.html b/docs/interfaces/deriveaddressparams.html
new file mode 100644
index 0000000..a7bb48b
--- /dev/null
+++ b/docs/interfaces/deriveaddressparams.html
@@ -0,0 +1,1144 @@
+
+
+
+
+
+ DeriveAddressParams | nanocurrency
+
+
+
+
+
+
+
+
+
+
+ nanocurrency
+
+
+
+ Options
+
+
+ All
+
+
+
+
+
+
+
+
+
+ Menu
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ useNanoPrefix: undefined | true | false
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/interfaces/openblockdata.html b/docs/interfaces/openblockdata.html
index 38b0758..fbf2121 100644
--- a/docs/interfaces/openblockdata.html
+++ b/docs/interfaces/openblockdata.html
@@ -918,6 +918,9 @@
-
Convert
Params
+ -
+ Derive
AddressParams
+
-
Open
BlockData
deriveAddress
-- derive
Address(publicKey: string): string
+ - derive
Address(publicKey: string, params?: DeriveAddressParams): string
publicKey: string
The public key to generate the address from, in hexadecimal format
Default value params: DeriveAddressParams = {}
+Parameters
+Returns string
Address
@@ -1595,7 +1605,7 @@derivePublicKey
deriveSecretKey
generateSeed
hashChangeBlock
hashOpenBlock
hashReceiveBlock
hashSendBlock
hashStateBlock
init
isReady
signBlock
validateWork
verifyBlock
work
previous
representative
Optional work
Optional from
Optional to
+- Public
+ - Public/Protected
+ - All
+
+Derive address params.
+Hierarchy
++-
+ DeriveAddressParams
+
+
+Index
+Properties
++- use
NanoPrefix
+
+Properties
+Optional useNanoPrefix
+Whether to use nano_ instead of xrb_
+@@ -1067,7 +1070,7 @@representative: string
@@ -1082,7 +1085,7 @@ source: string
@@ -1097,7 +1100,7 @@ work: string | null
diff --git a/docs/interfaces/receiveblockdata.html b/docs/interfaces/receiveblockdata.html
index ad35dc6..6ed8caf 100644
--- a/docs/interfaces/receiveblockdata.html
+++ b/docs/interfaces/receiveblockdata.html
@@ -918,6 +918,9 @@
-
Convert
Params
+ -
+ Derive
AddressParams
+
-
Open
BlockData
@@ -1067,7 +1070,7 @@ previous: string
@@ -1082,7 +1085,7 @@ source: string
@@ -1097,7 +1100,7 @@ work: string | null
diff --git a/docs/interfaces/sendblockdata.html b/docs/interfaces/sendblockdata.html
index 7d17a9b..c947d7f 100644
--- a/docs/interfaces/sendblockdata.html
+++ b/docs/interfaces/sendblockdata.html
@@ -918,6 +918,9 @@
-
Convert
Params
+ -
+ Derive
AddressParams
+
-
Open
BlockData
@@ -1071,7 +1074,7 @@ balance: string
@@ -1086,7 +1089,7 @@ destination: string
@@ -1101,7 +1104,7 @@ previous: string
@@ -1116,7 +1119,7 @@ work: string | null
diff --git a/docs/interfaces/stateblockdata.html b/docs/interfaces/stateblockdata.html
index f3d04bd..d3f00a5 100644
--- a/docs/interfaces/stateblockdata.html
+++ b/docs/interfaces/stateblockdata.html
@@ -918,6 +918,9 @@
-
Convert
Params
+ -
+ Derive
AddressParams
+
-
Open
BlockData
@@ -1075,7 +1078,7 @@ balance: string
@@ -1090,7 +1093,7 @@ link: string
@@ -1105,7 +1108,7 @@ previous: string
@@ -1120,7 +1123,7 @@ representative: string
@@ -1135,7 +1138,7 @@ work: string | null
diff --git a/src/parse.ts b/src/parse.ts
index 7cd037b..c3d25c5 100644
--- a/src/parse.ts
+++ b/src/parse.ts
@@ -9,6 +9,7 @@ import nanoBase32 from 'nano-base32'
import { compareArrays } from './utils'
import { checkString } from './check'
+/** @hidden */
export interface ParseAddressResult {
valid: boolean,
publicKeyBytes: Uint8Array | null
representative
source
Optional work
previous
source
Optional work
balance
destination
previous
Optional work
balance
link
previous
representative
Optional work