case class FrostNoncePriv(bytes: ByteVector) extends NetworkElement with MaskedToString with Product with Serializable
FROST nonce (private) representation.
This class wraps the serialized form of two secret nonces concatenated together. Each secret nonce is represented as a 32-byte big-endian scalar (a field element modulo the curve order), so the full representation is 64 bytes: k1 || k2.
Layout:
- bytes[0:32) => big-endian scalar encoding of k1
- bytes[32:64) => big-endian scalar encoding of k2
In the FROST protocol (and MuSig2), signers generate two secret nonces per signing session. Their corresponding public nonces are R1 = k1*G and R2 = k2*G, and the test vectors store the concatenation of the two private nonces in this format. The two nonces enable construction of the final signing nonce as a linear combination (e.g. R = R1_agg + c*R2_agg), where c is a hash-derived coefficient that depends on the aggregated nonces, aggregate public key, and message.
Security notes:
- Each 32-byte chunk should be interpreted as a scalar and validated according to your scalar/field representation (reduction modulo the curve order if needed).
- Nonces must be treated as secret material: zero them in memory after use
and avoid leaking them (this class implements
MaskedToStringto prevent accidental exposure in logs).
- bytes
the 64-byte concatenation of two 32-byte secret nonces (k1||k2)
- Alphabetic
- By Inheritance
- FrostNoncePriv
- Serializable
- Product
- Equals
- MaskedToString
- NetworkElement
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new FrostNoncePriv(bytes: ByteVector)
- bytes
the 64-byte concatenation of two 32-byte secret nonces (k1||k2)
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 byteSize: Long
The size of the NetworkElement in bytes.
The size of the NetworkElement in bytes.
- Definition Classes
- NetworkElement
- val bytes: ByteVector
The byte representation of the NetworkElement
The byte representation of the NetworkElement
- Definition Classes
- FrostNoncePriv → NetworkElement
- def bytesLE: ByteVector
The byte representation of the NetworkElement in little endian
The byte representation of the NetworkElement in little endian
- Definition Classes
- NetworkElement
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hex: String
The hexadecimal representation of the NetworkElement
The hexadecimal representation of the NetworkElement
- Definition Classes
- NetworkElement
- def hexLE: String
The hexadecimal representation of the NetworkElement in little endian
The hexadecimal representation of the NetworkElement in little endian
- Definition Classes
- NetworkElement
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def k1: ECPrivateKey
- def k2: ECPrivateKey
- 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()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toNoncePub: FrostNoncePub
- final def toString(): String
- Definition Classes
- MaskedToString → AnyRef → Any
- def toStringSensitive: String
Returns the real value of a sensitive string This should be considered unsafe in the sense that this information is sensitive and could cause loss of funds if used anywhere things are persisted like logs
Returns the real value of a sensitive string This should be considered unsafe in the sense that this information is sensitive and could cause loss of funds if used anywhere things are persisted like logs
- Definition Classes
- FrostNoncePriv → MaskedToString
- 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()