trustoverip / tswg-cesr-specification

Composable Event Streaming Representation (CESR) Specification
https://trustoverip.github.io/tswg-cesr-specification/
Other
7 stars 8 forks source link

docs: correct SAIDs #103

Open kentbull opened 2 months ago

kentbull commented 2 months ago

I calculated the SAIDs here with KERIpy and got the SAIDs in this changeset.

Here are the tests to generate the SAIDs I did (put the tests in test_coring.py and run them for reference).

def test_said_1():
    code = MtrDex.Blake3_256
    ser = b'{"said":"############################################","first":"Sue","last":"Smith","role":"Founder"}'
    saider, sad = Saider.saidify(sad=json.loads(ser), code=code, label='said')
    assert saider.qb64 == 'EJymtAC4piy_HkHWRs4JSRv0sb53MZJr8BQ4SMixXIVJ'

def test_said_2():
    code = MtrDex.Blake3_256
    ser = b'{"$id": "############################################","$schema": "http://json-schema.org/draft-07/schema#","type": "object","properties": {"full_name": {"type": "string"}}}'
    saider, sad = Saider.saidify(sad=json.loads(ser), code=code, label='$id')
    assert saider.qb64 == 'EGU_SHY-8ywNBJOqPKHr4sXV9tOtOwpYzYOM63_zUCDW'