Casper.Network.SDK
Show / Hide Table of Contents

Class GlobalStateKey

Base class for the different global state keys.

Inheritance
object
GlobalStateKey
AccountHashKey
AddressableEntityKey
BalanceHoldKey
BalanceKey
BidAddrKey
BidKey
BlockGlobalAddrKey
ByteCodeKey
ChainspecRegistryKey
ChecksumRegistryKey
DeployInfoKey
DictionaryKey
EntryPointKey
EraSummaryKey
HashKey
MessageKey
NamedKeyKey
PackageKey
SystemContractRegistryKey
TransferKey
U64GlobalStateKey
URef
UnbondKey
WithdrawKey
Inherited Members
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Casper.Network.SDK.Types
Assembly: Casper.Network.SDK.dll
Syntax
public abstract class GlobalStateKey

Constructors

| Edit this page View Source

GlobalStateKey(string)

Declaration
protected GlobalStateKey(string key)
Parameters
Type Name Description
string key
| Edit this page View Source

GlobalStateKey(string, string)

Declaration
protected GlobalStateKey(string key, string keyPrefix)
Parameters
Type Name Description
string key
string keyPrefix

Properties

| Edit this page View Source

Key

Declaration
protected string Key { get; init; }
Property Value
Type Description
string
| Edit this page View Source

KeyIdentifier

Declaration
public KeyIdentifier KeyIdentifier { get; init; }
Property Value
Type Description
KeyIdentifier
| Edit this page View Source

RawBytes

Declaration
public byte[] RawBytes { get; }
Property Value
Type Description
byte[]

Methods

| Edit this page View Source

Equals(object)

Determines whether the specified object is equal to the current object.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj

The object to compare with the current object.

Returns
Type Description
bool

true if the specified object is equal to the current object; otherwise, false.

Overrides
object.Equals(object)
| Edit this page View Source

FromBytes(byte[])

Converts a global state key from a byte array to its specific key object. First byte in the array indicates the Key identifier.

Declaration
public static GlobalStateKey FromBytes(byte[] bytes)
Parameters
Type Name Description
byte[] bytes
Returns
Type Description
GlobalStateKey
| Edit this page View Source

FromString(string)

Converts a global state key from string to its specific key object.

Declaration
public static GlobalStateKey FromString(string value)
Parameters
Type Name Description
string value
Returns
Type Description
GlobalStateKey
| Edit this page View Source

GetBytes()

Declaration
public virtual byte[] GetBytes()
Returns
Type Description
byte[]
| Edit this page View Source

GetHashCode()

Serves as the default hash function.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A hash code for the current object.

Overrides
object.GetHashCode()
| Edit this page View Source

ToHexString()

Returns a string with the hex string representation of the key, without the permissions byte.

Declaration
public string ToHexString()
Returns
Type Description
string
| Edit this page View Source

ToString()

Converts a key object to a string with the right prefix

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()
| Edit this page View Source

_GetRawBytesFromKey(string)

Declaration
protected virtual byte[] _GetRawBytesFromKey(string key)
Parameters
Type Name Description
string key
Returns
Type Description
byte[]
  • Edit this page
  • View Source
In this article
Back to top Maintained by MAKE Technology LLC