Class URef
Unforgeable Reference. This key type is used for storing any type of value
except Account. Additionally, URefs used in contracts carry permission information
to prevent unauthorized usage of the value stored under the key.
Inheritance
System.Object
URef
Assembly: Casper.Network.SDK.dll
Syntax
public class URef : GlobalStateKey
Constructors
URef(Byte[])
Creates an URef from a 33 bytes array. Last byte corresponds to the access rights.
Declaration
public URef(byte[] bytes)
Parameters
Type |
Name |
Description |
System.Byte[] |
bytes |
|
URef(Byte[], AccessRights)
Creates an URef from a 32 bytes array and the access rights.
Declaration
public URef(byte[] rawBytes, AccessRights accessRights)
Parameters
Type |
Name |
Description |
System.Byte[] |
rawBytes |
|
AccessRights |
accessRights |
|
URef(String)
Declaration
public URef(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Fields
KEYPREFIX
Declaration
public static string KEYPREFIX
Field Value
Type |
Description |
System.String |
|
Properties
AccessRights
Declaration
public AccessRights AccessRights { get; }
Property Value
Methods
_GetRawBytesFromKey(String)
Declaration
protected override byte[] _GetRawBytesFromKey(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Byte[] |
|
Overrides
GetBytes()
Declaration
public override byte[] GetBytes()
Returns
Type |
Description |
System.Byte[] |
|
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides