class DomainSnapshotSyncCryptoApi extends SyncCryptoApi with NamedLogging
crypto operations for a (domain,timestamp)
- Alphabetic
- By Inheritance
- DomainSnapshotSyncCryptoApi
- NamedLogging
- SyncCryptoApi
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DomainSnapshotSyncCryptoApi(owner: KeyOwner, domainId: DomainId, staticDomainParameters: StaticDomainParameters, ipsSnapshot: TopologySnapshot, crypto: Crypto, fetchSigningKey: (CantonTimestamp) => EitherT[Future, SyncCryptoError, Fingerprint], validKeysCacheConfig: CacheConfig, loggerFactory: NamedLoggerFactory)(implicit ec: ExecutionContext)
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() @IntrinsicCandidate()
- val crypto: Crypto
- def decrypt[M](encryptedMessage: AsymmetricEncrypted[M])(deserialize: (ByteString) => Either[DeserializationError, M])(implicit traceContext: TraceContext): EitherT[Future, SyncCryptoError, M]
Decrypts a message using the private key of the public key identified by the fingerprint in the AsymmetricEncrypted object.
Decrypts a message using the private key of the public key identified by the fingerprint in the AsymmetricEncrypted object.
- Definition Classes
- DomainSnapshotSyncCryptoApi → SyncCryptoApi
- val domainId: DomainId
- def encryptFor[M <: HasVersionedToByteString](message: M, owner: KeyOwner, version: ProtocolVersion): EitherT[Future, SyncCryptoError, AsymmetricEncrypted[M]]
Encrypts a message for the given key owner
Encrypts a message for the given key owner
Utility method to lookup a key on an IPS snapshot and then encrypt the given message with the most suitable key for the respective key owner.
- Definition Classes
- DomainSnapshotSyncCryptoApi → SyncCryptoApi
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
- Attributes
- protected
- Definition Classes
- NamedLogging
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- val ipsSnapshot: TopologySnapshot
- Definition Classes
- DomainSnapshotSyncCryptoApi → SyncCryptoApi
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def logger: TracedLogger
- Attributes
- protected
- Definition Classes
- NamedLogging
- val loggerFactory: NamedLoggerFactory
- Attributes
- protected
- Definition Classes
- DomainSnapshotSyncCryptoApi → NamedLogging
- implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
- Attributes
- protected
- Definition Classes
- NamedLogging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noTracingLogger: Logger
- Attributes
- protected
- Definition Classes
- NamedLogging
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- val owner: KeyOwner
- val pureCrypto: CryptoPureApi
- Definition Classes
- DomainSnapshotSyncCryptoApi → SyncCryptoApi
- def sign(hash: Hash)(implicit traceContext: TraceContext): EitherT[Future, SyncCryptoError, Signature]
Sign given hash with signing key for (owner, domain, timestamp)
Sign given hash with signing key for (owner, domain, timestamp)
- Definition Classes
- DomainSnapshotSyncCryptoApi → SyncCryptoApi
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def verifySignature(hash: Hash, signer: KeyOwner, signature: Signature): EitherT[Future, SignatureCheckError, Unit]
Verify signature of a given owner
Verify signature of a given owner
Convenience method to lookup a key of a given owner, domain and timestamp and verify the result.
- Definition Classes
- DomainSnapshotSyncCryptoApi → SyncCryptoApi
- def verifySignatures(hash: Hash, mediatorGroupIndex: MediatorGroupIndex, signatures: NonEmpty[Seq[Signature]])(implicit traceContext: TraceContext): EitherT[Future, SignatureCheckError, Unit]
Verifies a list of
signatures
to be produced by active members of amediatorGroup
, counting each member's signature only once.Verifies a list of
signatures
to be produced by active members of amediatorGroup
, counting each member's signature only once. ReturnsRight
when themediatorGroup
's threshold is met. Can be successful even if some signatures fail the check, logs the errors in that case. When the threshold is not met returnsLeft
with all the signature check errors.- Definition Classes
- DomainSnapshotSyncCryptoApi → SyncCryptoApi
- def verifySignatures(hash: Hash, signer: KeyOwner, signatures: NonEmpty[Seq[Signature]]): EitherT[Future, SignatureCheckError, Unit]
- Definition Classes
- DomainSnapshotSyncCryptoApi → SyncCryptoApi
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])