Home Reference Source
public class | source

Address

Addresses are shortened non-reversable hashes of a public key. The full PublicKey is preferred.

Static Method Summary

Static Public Methods
public static

fromBuffer(buffer: *): *

public static

fromPublic(public_key: *, compressed: boolean, version: number): *

public static

fromString(string: *, address_prefix: *): *

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

addy: *

Method Summary

Public Methods
public

toBuffer(): *

public

toString(address_prefix: *): *

Static Public Methods

public static fromBuffer(buffer: *): * source

Params:

NameTypeAttributeDescription
buffer *

Return:

*

public static fromPublic(public_key: *, compressed: boolean, version: number): * source

Params:

NameTypeAttributeDescription
public_key *
compressed boolean
  • optional
  • default: true
version number
  • optional
  • default: 56

Return:

*

Address - Compressed PTS format (by default)

public static fromString(string: *, address_prefix: *): * source

Params:

NameTypeAttributeDescription
string *
address_prefix *
  • optional

Return:

*

Public Constructors

public constructor() source

Public Members

public addy: * source

Public Methods

public toBuffer(): * source

Return:

*

public toString(address_prefix: *): * source

Params:

NameTypeAttributeDescription
address_prefix *
  • optional

Return:

*