예제 #1
0
    class SCHEMA_CLS(BaseSchema):
        id = BlockIDField(required=True)
        key = fields.SecretKey(required=True)
        offset = fields.Integer(required=True, validate=validate.Range(min=0))
        size = fields.Integer(required=True, validate=validate.Range(min=0))
        digest = fields.HashDigest(required=True)

        @post_load
        def make_obj(self, data: Dict[str, Any]) -> "BlockAccess":
            return BlockAccess(**data)
예제 #2
0
class Invite2aGreeterGetHashedNonceRepSchema(BaseRepSchema):
    claimer_hashed_nonce = fields.HashDigest(required=True)
예제 #3
0
class Invite2aClaimerSendHashedNonceHashNonceReqSchema(BaseReqSchema):
    claimer_hashed_nonce = fields.HashDigest(required=True)