jam.state.components.sigma module
- class jam.state.components.sigma.Sigma(*, alpha: Alpha, beta: Beta, gamma: Gamma, delta: Delta, eta: Eta, iota: Iota, kappa: Kappa, lambda_: Lambda_ = None, rho: Rho, tau: U32, phi: Phi, chi: Chi, psi: Psi, pi: Pi, theta: Theta, xi: Xi)[source]
-
Overall system state combining all components (σ). Defined in Graypaper section 4.2.
- __init__(*, alpha: Alpha, beta: Beta, gamma: Gamma, delta: Delta, eta: Eta, iota: Iota, kappa: Kappa, lambda_: Lambda_ = None, rho: Rho, tau: U32, phi: Phi, chi: Chi, psi: Psi, pi: Pi, theta: Theta, xi: Xi) None
Initialize the Codable.
- Parameters:
codec – Optional codec to use for encoding/decoding
enc_sequence – Optional function that returns sequence of fields to encode
- static decode_from(buffer: bytes | bytearray | memoryview, offset: int = 0) Tuple[T, int]
Decode from buffer. Must be implemented by subclasses or added via decorator.
- Parameters:
buffer – Buffer to decode from
offset – Starting position in buffer
- Returns:
The decoded value
Number of bytes read
- Return type:
Tuple containing