PublicKey
Static Method Summary
Static Public Methods | ||
public static |
fromBinary(bin: *): * |
|
public static |
fromBuffer(buffer: *): * |
|
public static |
fromHex(hex: *): * |
|
public static |
fromPoint(point: *): * |
|
public static |
fromPublicKeyString(public_key: *, address_prefix: *): * |
|
public static |
fromPublicKeyStringHex(hex: *): * |
|
public static |
fromStringOrThrow(public_key: *, address_prefix: *): * |
Constructor Summary
Public Constructor | ||
public |
constructor(public: Point) |
Member Summary
Public Members | ||
public |
Q: * |
Method Summary
Public Methods | ||
public |
child(offset: *): * |
|
public |
toAddressString(address_prefix: *): * |
|
public |
toBlockchainAddress(): * bts::blockchain::address (unique but not a full public key) |
|
public |
toBuffer(compressed: *): * |
|
public |
toByteBuffer(): * |
|
public |
toHex(): * |
|
public |
toPtsAddy(): * |
|
public |
toPublicKeyString(address_prefix: *): * Full public key {return} string |
|
public |
toString(address_prefix: *): * Alias for toPublicKeyString |
|
public |
toUncompressed(): * |
Static Public Methods
public static fromBuffer(buffer: *): * source
Params:
Name | Type | Attribute | Description |
buffer | * |
Return:
* |
public static fromPublicKeyString(public_key: *, address_prefix: *): * source
Params:
Name | Type | Attribute | Description |
public_key | * | ||
address_prefix | * |
|
Return:
* | PublicKey or |
public static fromPublicKeyStringHex(hex: *): * source
Params:
Name | Type | Attribute | Description |
hex | * |
Return:
* |
Public Constructors
public constructor(public: Point) source
Params:
Name | Type | Attribute | Description |
public | Point | key |
Public Members
public Q: * source
Public Methods
public toAddressString(address_prefix: *): * source
Params:
Name | Type | Attribute | Description |
address_prefix | * |
|
Return:
* |
public toBlockchainAddress(): * source
bts::blockchain::address (unique but not a full public key)
Return:
* |
public toBuffer(compressed: *): * source
Params:
Name | Type | Attribute | Description |
compressed | * |
|
Return:
* |
public toPublicKeyString(address_prefix: *): * source
Full public key {return} string
Params:
Name | Type | Attribute | Description |
address_prefix | * |
|
Return:
* |
public toString(address_prefix: *): * source
Alias for toPublicKeyString
Params:
Name | Type | Attribute | Description |
address_prefix | * |
|
Return:
* |