ByteArray⚓︎
- ByteArray
- Represents a fixed size byte array.
Extended by⚓︎
Hash256PrivateKeyPublicKeySharedKey256SignatureAddressUnresolvedAddressAddressHash256Hash512PublicKeyVotingPublicKeySignatureProofGammaProofVerificationHashProofScalar
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<ArrayBuffer> |
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