diff --git a/docs/enums/nanounit.html b/docs/enums/nanounit.html index d964164..621444f 100644 --- a/docs/enums/nanounit.html +++ b/docs/enums/nanounit.html @@ -944,6 +944,9 @@
  • ConvertParams
  • +
  • + DeriveAddressParams +
  • OpenBlockData
  • @@ -1079,7 +1082,7 @@

    KNano

    KNano: = "KNano"
    @@ -1094,7 +1097,7 @@

    MNano

    MNano: = "MNano"
    @@ -1109,7 +1112,7 @@

    NANO

    NANO: = "NANO"
    @@ -1124,7 +1127,7 @@

    Nano

    Nano: = "Nano"
    @@ -1139,7 +1142,7 @@

    hex

    hex: = "hex"
    @@ -1154,7 +1157,7 @@

    knano

    knano: = "knano"
    @@ -1169,7 +1172,7 @@

    nano

    nano: = "nano"
    @@ -1184,7 +1187,7 @@

    raw

    raw: = "raw"
    diff --git a/docs/index.html b/docs/index.html index 1f948bf..f39b496 100644 --- a/docs/index.html +++ b/docs/index.html @@ -918,6 +918,9 @@
  • ConvertParams
  • +
  • + DeriveAddressParams +
  • OpenBlockData
  • @@ -1033,6 +1036,7 @@

    Interfaces

    • ChangeBlockData
    • ConvertParams
    • +
    • DeriveAddressParams
    • OpenBlockData
    • ReceiveBlockData
    • SendBlockData
    • @@ -1081,13 +1085,13 @@

      Functions

      checkAddress

        -
      • checkAddress(address: string): boolean
      • +
      • checkAddress(address: any): boolean
      • @@ -1099,7 +1103,7 @@

        checkAddress

        Parameters

        • -
          address: string
          +
          address: any

          The address to check

          @@ -1114,13 +1118,13 @@

          Returns boolean

          checkBalance

            -
          • checkBalance(balance: string): boolean
          • +
          • checkBalance(balance: any): boolean
          • @@ -1132,7 +1136,7 @@

            checkBalance

            Parameters

            • -
              balance: string
              +
              balance: any

              The balance to check

              @@ -1147,13 +1151,13 @@

              Returns boolean

              checkHash

                -
              • checkHash(hash: string): boolean
              • +
              • checkHash(hash: any): boolean
              • @@ -1165,7 +1169,7 @@

                checkHash

                Parameters

                • -
                  hash: string
                  +
                  hash: any

                  The hash to check

                  @@ -1180,13 +1184,13 @@

                  Returns boolean

                  checkKey

                    -
                  • checkKey(key: string): boolean
                  • +
                  • checkKey(key: any): boolean
                  • @@ -1198,7 +1202,7 @@

                    checkKey

                    Parameters

                    • -
                      key: string
                      +
                      key: any

                      The key to check

                      @@ -1213,13 +1217,13 @@

                      Returns boolean

                      checkSeed

                        -
                      • checkSeed(seed: string): boolean
                      • +
                      • checkSeed(seed: any): boolean
                      • @@ -1231,7 +1235,7 @@

                        checkSeed

                        Parameters

                        • -
                          seed: string
                          +
                          seed: any

                          The seed to check

                          @@ -1246,13 +1250,13 @@

                          Returns boolean

                          checkSignature

                            -
                          • checkSignature(signature: string): boolean
                          • +
                          • checkSignature(signature: any): boolean
                          • @@ -1264,7 +1268,7 @@

                            checkSignature

                            Parameters

                            • -
                              signature: string
                              +
                              signature: any

                              The signature to check

                              @@ -1279,13 +1283,13 @@

                              Returns boolean

                              checkWork

                                -
                              • checkWork(work: string): boolean
                              • +
                              • checkWork(work: any): boolean
                              • @@ -1297,7 +1301,7 @@

                                checkWork

                                Parameters

                              • +
                              • + DeriveAddressParams +
                              • OpenBlockData
                              • @@ -1063,7 +1066,7 @@

                                Optional from

                                from: NanoUnit
                                @@ -1078,7 +1081,7 @@

                                Optional to

                                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 + + + + + +
                                +
                                +
                                +
                                + +
                                +
                                + Options +
                                +
                                + All +
                                  +
                                • Public
                                • +
                                • Public/Protected
                                • +
                                • All
                                • +
                                +
                                + + + + + + +
                                +
                                + Menu +
                                +
                                +
                                +
                                +
                                + +
                                +
                                +
                                +
                                +
                                +

                                Derive address params.

                                +
                                +
                                +
                                +
                                +

                                Hierarchy

                                +
                                  +
                                • + DeriveAddressParams +
                                • +
                                +
                                +
                                +

                                Index

                                +
                                +
                                +
                                +

                                Properties

                                + +
                                +
                                +
                                +
                                +
                                +

                                Properties

                                +
                                + +

                                Optional useNanoPrefix

                                +
                                useNanoPrefix: undefined | true | false
                                + +
                                +
                                +

                                Whether to use nano_ instead of xrb_

                                +
                                +
                                +
                                +
                                +
                                +
                                +

                                Legend

                                +
                                +
                                  +
                                • Module
                                • +
                                • Object literal
                                • +
                                • Variable
                                • +
                                • Function
                                • +
                                • Function with type parameter
                                • +
                                • Index signature
                                • +
                                • Type alias
                                • +
                                +
                                  +
                                • Enumeration
                                • +
                                • Enumeration member
                                • +
                                • Property
                                • +
                                • Method
                                • +
                                +
                                  +
                                • Interface
                                • +
                                • Interface with type parameter
                                • +
                                • Constructor
                                • +
                                • Property
                                • +
                                • Method
                                • +
                                • Index signature
                                • +
                                +
                                  +
                                • Class
                                • +
                                • Class with type parameter
                                • +
                                • Constructor
                                • +
                                • Property
                                • +
                                • Method
                                • +
                                • Accessor
                                • +
                                • Index signature
                                • +
                                +
                                  +
                                • Inherited constructor
                                • +
                                • Inherited property
                                • +
                                • Inherited method
                                • +
                                • Inherited accessor
                                • +
                                +
                                  +
                                • Protected property
                                • +
                                • Protected method
                                • +
                                • Protected accessor
                                • +
                                +
                                  +
                                • Private property
                                • +
                                • Private method
                                • +
                                • Private accessor
                                • +
                                +
                                  +
                                • Static property
                                • +
                                • Static method
                                • +
                                +
                                +
                                +
                                +
                                +
                                + + + \ 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 @@
                              • ConvertParams
                              • +
                              • + DeriveAddressParams +
                              • OpenBlockData
                                  @@ -1067,7 +1070,7 @@

                                  representative

                                  representative: string
                                  @@ -1082,7 +1085,7 @@

                                  source

                                  source: string
                                  @@ -1097,7 +1100,7 @@

                                  Optional work

                                  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 @@
                                • ConvertParams
                                • +
                                • + DeriveAddressParams +
                                • OpenBlockData
                                • @@ -1067,7 +1070,7 @@

                                  previous

                                  previous: string
                                  @@ -1082,7 +1085,7 @@

                                  source

                                  source: string
                                  @@ -1097,7 +1100,7 @@

                                  Optional work

                                  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 @@
                                • ConvertParams
                                • +
                                • + DeriveAddressParams +
                                • OpenBlockData
                                • @@ -1071,7 +1074,7 @@

                                  balance

                                  balance: string
                                  @@ -1086,7 +1089,7 @@

                                  destination

                                  destination: string
                                  @@ -1101,7 +1104,7 @@

                                  previous

                                  previous: string
                                  @@ -1116,7 +1119,7 @@

                                  Optional work

                                  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 @@
                                • ConvertParams
                                • +
                                • + DeriveAddressParams +
                                • OpenBlockData
                                • @@ -1075,7 +1078,7 @@

                                  balance

                                  balance: string
                                  @@ -1090,7 +1093,7 @@

                                  link

                                  link: string
                                  @@ -1105,7 +1108,7 @@

                                  previous

                                  previous: string
                                  @@ -1120,7 +1123,7 @@

                                  representative

                                  representative: string
                                  @@ -1135,7 +1138,7 @@

                                  Optional work

                                  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