Packages

c

com.digitalasset.canton.crypto

SynchronizerSnapshotSyncCryptoApi

class SynchronizerSnapshotSyncCryptoApi extends SyncCryptoApi with NamedLogging

crypto operations for a (synchronizer,timestamp)

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SynchronizerSnapshotSyncCryptoApi
  2. NamedLogging
  3. SyncCryptoApi
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SynchronizerSnapshotSyncCryptoApi(synchronizerId: SynchronizerId, staticSynchronizerParameters: StaticSynchronizerParameters, ipsSnapshot: TopologySnapshot, crypto: Crypto, syncCryptoSigner: SyncCryptoSigner, syncCryptoVerifier: SyncCryptoVerifier, loggerFactory: NamedLoggerFactory)(implicit ec: ExecutionContext)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. val crypto: Crypto
  7. def decrypt[M](encryptedMessage: AsymmetricEncrypted[M])(deserialize: (ByteString) => Either[DeserializationError, M])(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, 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
    SynchronizerSnapshotSyncCryptoApiSyncCryptoApi
  8. def encryptFor[M <: HasToByteString, MemberType <: Member](message: M, members: Seq[MemberType])(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, (MemberType, SyncCryptoError), Map[MemberType, AsymmetricEncrypted[M]]]

    Encrypts a message for the given members

    Encrypts a message for the given members

    Utility method to lookup a key on an IPS snapshot and then encrypt the given message with the most suitable key for the respective member.

    Definition Classes
    SynchronizerSnapshotSyncCryptoApiSyncCryptoApi
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  14. val ipsSnapshot: TopologySnapshot
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  17. val loggerFactory: NamedLoggerFactory
    Attributes
    protected
    Definition Classes
    SynchronizerSnapshotSyncCryptoApiNamedLogging
  18. implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def noTracingLogger: Logger
    Attributes
    protected
    Definition Classes
    NamedLogging
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  23. val pureCrypto: CryptoPureApi
  24. def sign(hash: Hash, usage: NonEmpty[Set[SigningKeyUsage]])(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, SyncCryptoError, Signature]

    Signs the given hash using the private signing key.

    Signs the given hash using the private signing key. It uses the most recent signing key with the specified usage in the private store. The key usage must intersect with the provided usage, but it does not need to satisfy all the provided usages.

    hash

    the hash to sign

    usage

    restricts signing to private keys that have at least one matching usage

    Definition Classes
    SynchronizerSnapshotSyncCryptoApiSyncCryptoApi
  25. val syncCryptoSigner: SyncCryptoSigner
  26. val syncCryptoVerifier: SyncCryptoVerifier
  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. val synchronizerId: SynchronizerId
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. def unsafePartialVerifySequencerSignatures(hash: Hash, signatures: NonEmpty[Seq[Signature]], usage: NonEmpty[Set[SigningKeyUsage]])(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, SignatureCheckError, Unit]

    This verifies that at least one of the signature is a valid sequencer signature.

    This verifies that at least one of the signature is a valid sequencer signature. In particular, it does not respect the participant trust threshold. This should be used only in the context of reassignment where the concept of cross-synchronizer proof of sequencing is not fully fleshed out.

    TODO(#12410) Remove this method and respect trust threshold

    Definition Classes
    SynchronizerSnapshotSyncCryptoApiSyncCryptoApi
  31. def verifyMediatorSignatures(hash: Hash, mediatorGroupIndex: MediatorGroupIndex, signatures: NonEmpty[Seq[Signature]], usage: NonEmpty[Set[SigningKeyUsage]])(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, SignatureCheckError, Unit]

    Verifies a list of signatures to be produced by active members of a mediatorGroup, counting each member's signature only once.

    Verifies a list of signatures to be produced by active members of a mediatorGroup, counting each member's signature only once. Returns Right when the mediatorGroup'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 returns Left with all the signature check errors.

    Definition Classes
    SynchronizerSnapshotSyncCryptoApiSyncCryptoApi
  32. def verifySequencerSignatures(hash: Hash, signatures: NonEmpty[Seq[Signature]], usage: NonEmpty[Set[SigningKeyUsage]])(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, SignatureCheckError, Unit]
  33. def verifySignature(hash: Hash, signer: Member, signature: Signature, usage: NonEmpty[Set[SigningKeyUsage]])(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, SignatureCheckError, Unit]

    Verify signature of a given owner.

    Verify signature of a given owner. Convenience method to lookup a key of a given owner, synchronizer and timestamp and verify the result.

    usage

    verifies that the signature was produced with a signing key with at least one matching usage

    Definition Classes
    SynchronizerSnapshotSyncCryptoApiSyncCryptoApi
  34. def verifySignatures(hash: Hash, signer: Member, signatures: NonEmpty[Seq[Signature]], usage: NonEmpty[Set[SigningKeyUsage]])(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, SignatureCheckError, Unit]
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from NamedLogging

Inherited from SyncCryptoApi

Inherited from AnyRef

Inherited from Any

Ungrouped