Skip to content

Commit

Permalink
feat: implement a Cairo struct to represent NIP-01 event (#19)
Browse files Browse the repository at this point in the history
* feat: implement a Cairo struct to represent NIP-01 event

* fix: update nip01 struct type

* fix: run scarb fmt --check

* fix: modify nip event

* fix: split sig intow two u256

* fix: update tags type
  • Loading branch information
zintarh authored May 14, 2024
1 parent e0bd47c commit dfe1e77
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions onchain/src/nip01.cairo
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#[derive(Copy, Drop)]
struct NIP01Event {
id: u256,
pubkey: u256,
created_at: u64,
kind: u16,
tags: Array<Array<ByteArray>>,
content: ByteArray,
sig_r: u256,
sig_s: u256
}

0 comments on commit dfe1e77

Please sign in to comment.