Package-level declarations
Types
Link copied to clipboard
class CommitmentViolation(val peer: PeerId, val expectedHash: ByteArray, val actualHash: ByteArray) : Exception
Thrown when a peer's revealed secret does not match its earlier commitment hash.
Link copied to clipboard
interface CommutativeScheme
Link copied to clipboard
class DealSession(seam: Seam, scheme: CommutativeScheme, myKey: SchemeKeyPair, allPlayers: Set<PlayerId>, myId: PlayerId, scope: CoroutineScope) : ScopedCloseable
Drives a cryptographically fair card deal over a Seam, as an op-based CRDT.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
SRA (Shamir–Rivest–Adleman) commutative encryption scheme.
Link copied to clipboard
Functions
Link copied to clipboard
Inverse of encodePlaintext: drops the 0x01 marker byte.
Link copied to clipboard