BaseDkls23PublicKey<T extends IPublicKey<IVerifiyingParams> > class
abstract
Base class for a DKLs23 aggregate public key: the group key verifiers check the final threshold signature against, plus the member keys of the quorum.
The base holds no key bytes itself: each concrete subclass stores
strongly-typed curve points (Secp256k1PublicKey /
Secp256r1PublicKey). All signing/verification behavior lives in
IDkls23VerificationKey (verify_signing.dart).
- Inheritance
-
- Object
- IDkls23VerificationKey
- BaseDkls23PublicKey
- Implemented types
- Mixed-in types
- Implementers
Constructors
Properties
- aggKey → T
-
Aggregate (group) key: the key verifiers check the final threshold
signature against.
final
- curve → Dkls23Curve
-
Curve of this key.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
members
→ List<
T> ? -
Member keys of the quorum (
nullwhen stripped).final - n → int?
-
Committee size
n(nullwhen unknown).no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- threshold → int?
-
Threshold
tof this quorum (null= full quorum ofn).no setterinherited - type → CryptoKeyType
-
no setteroverride
- variables → List
-
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBytes(
{CryptoKeyEncoding mode = CryptoKeyEncoding.base}) → BuBytes -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
verify(
Dkls23VerifyParams params) → bool -
override
-
verifyHash(
{required List< int> msgHash, required IECDSASignature signature}) → bool - Verify a threshold signature over a 32-byte message hash.
-
xOnly(
) → BuBytes - 32-byte x-only form of the group key.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromBytes(
List< int> bytes) → BaseDkls23PublicKey<IPublicKey< IVerifiyingParams> > -
Dispatching parse: reads the embedded curve id and returns the
matching subclass.
override
-
isValidBytes(
List< int> keyBytes) → bool -
Static method to check the validity of a byte array as a public key for a specific elliptic curve type.
override
-
isValidKeyEncoding(
List< int> keyBytes, CryptoKeyEncoding encoding) → bool -
Checks whether
keyBytesis a valid public key of the giventypewhen interpreted with the givenencoding.override -
layout(
) → Layout< BaseDkls23PublicKey< IPublicKey< >IVerifiyingParams> >