ByteArray⚓︎
- ByteArray
- Represents a fixed size byte array.
Extended by⚓︎
Hash256
PrivateKey
PublicKey
SharedKey256
Signature
Address
UnresolvedAddress
Address
Hash256
Hash512
PublicKey
VotingPublicKey
Signature
ProofGamma
ProofVerificationHash
ProofScalar
Constructors⚓︎
new ByteArray()⚓︎
Creates a byte array.
Parameters⚓︎
Parameter | Type | Description |
---|---|---|
fixedSize |
number |
Size of the array. |
arrayInput |
string | Uint8Array <ArrayBufferLike > |
Byte array or hex string. |
Returns⚓︎
ByteArray
Properties⚓︎
Property | Modifier | Type | Description |
---|---|---|---|
bytes |
public |
Uint8Array |
Underlying bytes. |
NAME |
static |
string |
Byte array name (required because constructor.name is dropped during minification). |
Methods⚓︎
toJson()⚓︎
- ByteArray.toJson
- Returns representation of this object that can be stored in JSON.
Returns⚓︎
string
JSON-safe representation of this object.
toString()⚓︎
- ByteArray.toString
- Returns string representation of this object.
Returns⚓︎
string
String representation of this object