Properties
Private addressCount
addressCount: number
Private internalDerivationPath
internalDerivationPath: string
Private internalOtherAddresses
internalOtherAddresses: AddressObject[]
Private internalPublicKey
internalPublicKey: string
otherAddresses
otherAddresses: string[]
sign
Type declaration
-
-
Parameters
Returns Promise<string>
signMessage
Type declaration
-
-
Parameters
Returns Promise<string>
verifyMessage
Type declaration
-
-
Parameters
Returns Promise<boolean>
Set the default address/public key/path one of the (other) addresses from the array. This is usefull since most methods (sign, signMessage) use this props as defaults.
There's an argument to be made here that we can derive new addresses only when this method gets called.
This would be helpful to offload the initial cost of deriving a number of
addressCount
addresses.On the other hand, if we do this, we won't be able to show the user what addresses are available up front.
setDefaultAddress