Casper.Network.SDK
Show / Hide Table of Contents

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
GlobalStateKey
URef
Inherited Members
GlobalStateKey.Key
GlobalStateKey.KeyIdentifier
GlobalStateKey.RawBytes
GlobalStateKey.ToHexString()
GlobalStateKey.FromString(String)
GlobalStateKey.FromBytes(Byte[])
Namespace: Casper.Network.SDK.Types
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
Type Description
AccessRights

Methods

_GetRawBytesFromKey(String)

Declaration
protected override byte[] _GetRawBytesFromKey(string key)
Parameters
Type Name Description
System.String key
Returns
Type Description
System.Byte[]
Overrides
GlobalStateKey._GetRawBytesFromKey(String)

GetBytes()

Declaration
public override byte[] GetBytes()
Returns
Type Description
System.Byte[]
Overrides
GlobalStateKey.GetBytes()

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
GlobalStateKey.ToString()
In This Article
Back to top Maintained by MAKE Technology LLC