object ContractSalt extends Serializable
- Alphabetic
- By Inheritance
- ContractSalt
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def createV1(hmacOps: HmacOps)(transactionUuid: UUID, psid: PhysicalSynchronizerId, mediator: MediatorGroupRecipient, viewParticipantDataSalt: Salt, createIndex: Int, viewPosition: ViewPosition): ContractSalt
Creates a ContractSalt based on the information that ensures global uniqueness of Canton contract IDs of version com.digitalasset.daml.lf.value.Value.ContractId.V1.
Creates a ContractSalt based on the information that ensures global uniqueness of Canton contract IDs of version com.digitalasset.daml.lf.value.Value.ContractId.V1.
- hmacOps
The hmac operations to derive the blinded hash.
- transactionUuid
The UUID of the transaction that creates the contract.
- psid
The synchronizer on which the contract is created.
- mediator
The mediator that handles the transaction that creates the contract
- viewParticipantDataSalt
The com.digitalasset.canton.data.ViewParticipantData's salt of the view whose core contains the contract creation. This is used to blind the hash. It therefore must contain good randomness.
- createIndex
The index of the create node in the view (starting at 0). Only create nodes and only nodes that belong to the core of the view with salt
viewParticipantDataSalthave an index.- viewPosition
The position of the view whose core creates the contract
- See also
UnicumGenerator for the construction details
- def createV2(hmacOps: HmacOps)(viewParticipantDataSalt: Salt, createIndex: Int, viewPosition: ViewPosition): ContractSalt
Creates a ContractSalt based on the information that ensures uniqueness of Canton contract IDs of version com.digitalasset.daml.lf.value.Value.ContractId.V2.
Creates a ContractSalt based on the information that ensures uniqueness of Canton contract IDs of version com.digitalasset.daml.lf.value.Value.ContractId.V2. Uniqueness is guaranteed only within the scope of the creating transaction; global uniqueness is obtained by absolutization.
- hmacOps
The hmac operations to derive the blinded hash.
- viewParticipantDataSalt
The com.digitalasset.canton.data.ViewParticipantData's salt of the view whose core contains the contract creation. This is used to blind the hash. It therefore must contain good randomness.
- createIndex
The index of the create node in the view (starting at 0). Only create nodes and only nodes that belong to the core of the view with salt
viewParticipantDataSalthave an index.- viewPosition
The position of the view whose core creates the contract
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()