keep-starknet-strange / joyboy

Decentralized social built with Nostr and powered by Starknet account abstraction.
https://joyboy.community
MIT License
68 stars 51 forks source link

Implement a function to deserialize NIP-01 event from `Span<felt252>` #15

Closed maciejka closed 5 months ago

maciejka commented 5 months ago

Depends on #10. NIP-01: https://github.com/nostr-protocol/nips/blob/master/01.md Sample event to be parsed:

{
    "id": "4376c65d2f232afbe9b882a35baa4f6fe8667c4e684749af565f981833ed6a65",
    "pubkey": "6e468422dfb74a5738702a8823b9b28168abab8655faacb6853cd0ee15deee93",
    "created_at": 1673347337,
    "kind": 1,
    "tags": [
        ["e", "3da979448d9ba263864c4d6f14984c423a3838364ec255f03c7904b1ae77f206"],
        ["p", "bf2376e17ba4ec269d10fcc996a4746b451152be9031fa48e74553dde5526bce"]
    ],
    "content": "Walled gardens became prisons, and nostr is the first step towards tearing down the prison walls.",
    "sig": "908a15e46fb4d8675bab026fc230a0e3542bfade63da02d542fb78b2a8513fcd0092619a2c8c1221e581946e0191f2af505dfdf8657a414dbca329186f009262"
}
bhavyagosai commented 5 months ago

hi can I take this one up??

maciejka commented 5 months ago

hi can I take this one up??

Hey, nice to meet you. How long do you think it would take you?

bhavyagosai commented 5 months ago

shouldn't take long. What I essentially need is to implement a function which would deserialize the data received from the nip-01 event. Also afaik, this is blocked until #10 is resolved right where the struct will be created for this event?

maciejka commented 5 months ago

Right, but you do not need to wait until #10 is done to start the work.

maciejka commented 5 months ago

@bhavyagosai what is your telegram handle?

maciejka commented 5 months ago

@bhavyagosai I realized there is no need to deserialize events in Cairo. Please contact me on telegram (@aundumla) to discuss what you can work on.