PublicKey
@harmoniclabs/cardano-ledger-ts • Docs
@harmoniclabs/cardano-ledger-ts / PublicKey
Class: PublicKey
Extends
Constructors
new PublicKey()
new PublicKey(
pubKey
):PublicKey
Parameters
• pubKey: string
| Uint8Array
| Hash32
Returns
Overrides
Defined in
src/credentials/PublicKey.ts:11
Properties
hash
readonly
hash:PubKeyHash
Defined in
src/credentials/PublicKey.ts:9
Accessors
_bytes
get
protected
_bytes():Uint8Array
Returns
Uint8Array
Inherited from
Defined in
_str
get
protected
_str():string
Returns
string
Inherited from
Defined in
asBytes
get
asBytes():Uint8Array
Deprecated
use toBuffer()
instead
Returns
Uint8Array
Inherited from
Defined in
asString
get
asString():string
Deprecated
use toString()
instead
Returns
string
Inherited from
Defined in
Methods
clone()
clone():
Hash
Returns
Inherited from
Defined in
toBuffer()
toBuffer():
Uint8Array
Returns
Uint8Array
Inherited from
Defined in
toBytes()
toBytes():
Uint8Array
Returns
Uint8Array
Deprecated
use toBuffer()
instead
Inherited from
Defined in
toCbor()
toCbor():
CborString
Returns
CborString
Inherited from
Defined in
toCborObj()
toCborObj():
CborObj
Returns
CborObj
Inherited from
Defined in
toData()
toData(
_version
?):Data
Parameters
• _version?: ToDataVersion
Returns
Data
Inherited from
Defined in
toString()
toString():
string
Returns a string representation of an object.
Returns
string
Inherited from
Defined in
fromAscii()
static
fromAscii(asciiStr
):Hash
Parameters
• asciiStr: string
Returns
Inherited from
Defined in
fromCbor()
static
fromCbor(cStr
):PublicKey
Parameters
• cStr: CanBeCborString
Returns
Overrides
Defined in
src/credentials/PublicKey.ts:40
fromCborObj()
static
fromCborObj(cObj
):PublicKey