Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: correct SAIDs #103

Open
wants to merge 1 commit into
base: revised-format
Choose a base branch
from

Conversation

kentbull
Copy link

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'

I calculated the SAIDs here with KERIpy and got the SAIDs in this changeset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant