Lock

org.plasmalabs.sdk.models.box.Lock
See theLock companion class
object Lock extends GeneratedMessageCompanion[Lock]

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
trait GeneratedMessageCompanion[Lock]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
Lock.type

Members list

Type members

Classlikes

final case class Commitment(root: Option[AccumulatorRootId], threshold: Int, unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[Commitment]

todo: jaa - should disable ot figure out how to provide the needed witness in the attestation Public information Predicate Commitments are used to encumber boxes use a Root here so we can provide a membership proof of the conditions

todo: jaa - should disable ot figure out how to provide the needed witness in the attestation Public information Predicate Commitments are used to encumber boxes use a Root here so we can provide a membership proof of the conditions

Attributes

Companion
object
Supertypes
trait Updatable[Commitment]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Commitment extends GeneratedMessageCompanion[Commitment]

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
trait GeneratedMessageCompanion[Commitment]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
Commitment.type
final case class Image(leaves: Seq[LockId], threshold: Int, unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[Image]

Semi-public information The most commonly shared construction between parties

Semi-public information The most commonly shared construction between parties

Attributes

Companion
object
Supertypes
trait Updatable[Image]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Image extends GeneratedMessageCompanion[Image]

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
trait GeneratedMessageCompanion[Image]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
Image.type
implicit class LockLens[UpperPB](_l: Lens[UpperPB, Lock]) extends ObjectLens[UpperPB, Lock]

Attributes

Supertypes
class ObjectLens[UpperPB, Lock]
trait Lens[UpperPB, Lock]
trait Serializable
class Object
trait Matchable
class Any
Show all
final case class Predicate(challenges: Seq[Challenge], threshold: Int, unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[Predicate]

Private information a Predicate is a type of lock that will be satisfied if at least the threshold number of the contained proposition are satisfied

Private information a Predicate is a type of lock that will be satisfied if at least the threshold number of the contained proposition are satisfied

Value parameters

challenges

this should probably be a non-empty chain

Attributes

Companion
object
Supertypes
trait Updatable[Predicate]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Predicate extends GeneratedMessageCompanion[Predicate]

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
trait GeneratedMessageCompanion[Predicate]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
Predicate.type
object Value

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Value.type
sealed trait Value extends GeneratedOneof

Attributes

Companion
object
Supertypes
trait GeneratedOneof
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Commitment
object Empty
class Image
class Predicate

Inherited types

type ValueType = Lock

Attributes

Inherited from:
GeneratedMessageCompanion

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def enumCompanionForFieldNumber(`__fieldNumber`: Int): GeneratedEnumCompanion[_]
def javaDescriptor: Descriptor

Returns the Java descriptors for this message. It is recommended to use scalaDescriptors. The Java descriptors are available even when Java conversions is disabled, however they are not available in Scala.js or scala-native.

Returns the Java descriptors for this message. It is recommended to use scalaDescriptors. The Java descriptors are available even when Java conversions is disabled, however they are not available in Scala.js or scala-native.

Attributes

def messageCompanionForFieldNumber(`__number`: Int): GeneratedMessageCompanion[_]
def of(value: Value): Lock
def parseFrom(`_input__`: CodedInputStream): Lock

Parses a message from a CodedInputStream.

Parses a message from a CodedInputStream.

Attributes

def scalaDescriptor: Descriptor

Inherited methods

def enumCompanionForField(field: FieldDescriptor): GeneratedEnumCompanion[_]

Attributes

Inherited from:
GeneratedMessageCompanion
def fromAscii(s: String): Lock

Attributes

Inherited from:
GeneratedMessageCompanion
def merge(a: Lock, input: CodedInputStream): Lock

Merges the given message with the additional fields in the steam.

Merges the given message with the additional fields in the steam.

Attributes

Inherited from:
GeneratedMessageCompanion
def messageCompanionForField(field: FieldDescriptor): GeneratedMessageCompanion[_]

Attributes

Inherited from:
GeneratedMessageCompanion
def parseDelimitedFrom(input: InputStream): Option[Lock]

Attributes

Inherited from:
GeneratedMessageCompanion
def parseDelimitedFrom(input: CodedInputStream): Option[Lock]

Attributes

Inherited from:
GeneratedMessageCompanion
def parseFrom(s: Array[Byte]): Lock

Attributes

Inherited from:
GeneratedMessageCompanion
def parseFrom(input: InputStream): Lock

Attributes

Inherited from:
GeneratedMessageCompanion
def streamFromDelimitedInput(input: InputStream): Stream[Lock]

Attributes

Inherited from:
GeneratedMessageCompanion
def toByteArray(a: Lock): Array[Byte]

Attributes

Inherited from:
GeneratedMessageCompanion
def validate(s: Array[Byte]): Try[Lock]

Attributes

Inherited from:
GeneratedMessageCompanion
def validateAscii(s: String): Either[TextFormatError, Lock]

Attributes

Inherited from:
GeneratedMessageCompanion

Concrete fields

final val IMAGE_FIELD_NUMBER: 2
final val PREDICATE_FIELD_NUMBER: 1
lazy val defaultInstance: Lock
lazy val nestedMessagesCompanions: Seq[GeneratedMessageCompanion[_ <: GeneratedMessage]]

Implicits

Implicits

final implicit def LockLens[UpperPB](_l: Lens[UpperPB, Lock]): LockLens[UpperPB]
implicit def messageCompanion: GeneratedMessageCompanion[Lock]
implicit def messageReads: Reads[Lock]
implicit def validator: Validator[Lock]