class DomainSnapshotSyncCryptoApi extends SyncCryptoApi with NamedLogging
crypto operations for a (domain,timestamp)
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- DomainSnapshotSyncCryptoApi
- NamedLogging
- SyncCryptoApi
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new DomainSnapshotSyncCryptoApi(owner: KeyOwner, domainId: DomainId, 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() @HotSpotIntrinsicCandidate()
- val crypto: Crypto
- def decrypt[M](encryptedMessage: AsymmetricEncrypted[M])(deserialize: (ByteString) => Either[DeserializationError, M]): EitherT[Future, SyncCryptoError, M]
Decrypts a message using the private key of the public key given as the fingerprint.
Decrypts a message using the private key of the public key given as the fingerprint.
- Definition Classes
- DomainSnapshotSyncCryptoApi → SyncCryptoApi
- def decrypt[M](encryptedMessage: Encrypted[M])(deserialize: (ByteString) => Either[DeserializationError, M]): EitherT[Future, SyncCryptoError, M]
- 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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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 loggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
- 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() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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
- 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])