IObjectId
Namespace: IotaSdk
An ObjectId is a 32-byte identifier used to uniquely identify an object on the IOTA
blockchain.
Relationship to Address
Addresses and ObjectIds share the same 32-byte addressable space but are derived leveraging
different domain-separator values to ensure, cryptographically, that there won't be any overlap,
e.g. there can't be a valid Object whose ObjectId is equal to that of the Address of a
user account.
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
public interface IObjectId : System.IEquatable`1[[IotaSdk.ObjectId, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]
Implements IEquatable<ObjectId>
Attributes NullableContextAttribute
Methods
DeriveDynamicChildId(TypeTag, Byte[])
Derive an ObjectId for a Dynamic Child Object.
hash(parent || len(key) || key || key_type_tag)
ObjectId DeriveDynamicChildId(TypeTag keyTypeTag, Byte[] keyBytes)
Parameters
keyTypeTag TypeTag
keyBytes Byte[]
Returns
DeriveObjectId(TypeTag, Byte[])
Derive the ObjectId of a derived object (0x2::derived_object).
hash(parent || len(key) || key || DerivedObjectKey(key_type_tag))
ObjectId DeriveObjectId(TypeTag keyTypeTag, Byte[] keyBytes)
Parameters
keyTypeTag TypeTag
keyBytes Byte[]
Returns
NextLexicographical()
Returns the next digest in byte-increasing order.
ObjectId NextLexicographical()
Returns
NextLexicographicalOpt()
Returns the next digest in byte-increasing order, or None if the result would overflow.
ObjectId? NextLexicographicalOpt()
Returns
ToAddress()
Address ToAddress()
Returns
ToBcs()
Convert this type to BCS encoded bytes.
Byte[] ToBcs()
Returns
Exceptions
ToBytes()
Byte[] ToBytes()
Returns
ToCanonicalString(Boolean)
Returns the string representation of this object ID using the canonical display, with or
without a 0x prefix.
string ToCanonicalString(bool withPrefix)
Parameters
withPrefix Boolean
Returns
ToDisplayString()
Render this type as human-readable text.
Some types also print this through the binding's native string conversion; this method is the spelling every object type has.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
string ToDisplayString()
Returns
ToHex()
Returns the string representation of this object id in hex format with 0x prefix.
string ToHex()
Returns
ToJson()
Convert this type to a JSON encoded string.
string ToJson()
Returns
Exceptions
ToRawHex()
Returns the string representation of this object id in hex format without 0x prefix.
string ToRawHex()
Returns
ToRawShortHex()
Returns the shortest possible string representation of the object id (i.e. with leading
zeroes trimmed), without 0x prefix.
string ToRawShortHex()
Returns
ToShortHex()
Returns the shortest possible string representation of the object ID (i.e. with leading zeroes trimmed).
string ToShortHex()