Sha256: 2f4619c578e4db151cba1abbd0c5f620479c19b988478627cd95da184cec5cac
Contents?: true
Size: 730 Bytes
Versions: 2
Compression:
Stored size: 730 Bytes
Contents
require 'nostrb/event' module Nostrb module Test SK, PK = SchnorrSig.keypair def self.new_event(content = 'testing') Event.new(content, pk: PK).sign(SK) end EVENT = Event.new('testing', pk: PK) SIGNED = EVENT.sign(SK) HASH = SIGNED.to_h STATIC_HASH = { "content" => "hello world", "pubkey" => "18a2f562682d3ccaee89297eeee89a7961bc417bad98e9a3a93f010b0ea5313d", "kind" => 1, "tags" => [], "created_at" => 1725496781, "id" => "7f6f1c7ee406a450b581c62754fa66ffaaff0504b40ced02a6d0fc3806f1d44b", "sig" => "8bb25f403e90cbe83629098264327b56240a703820b26f440a348ae81a64ec490c18e61d2942fe300f26b93a1534a94406aec12f5a32272357263bea88fccfda" } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nostrb-0.2.0.1 | test/common.rb |
nostrb-0.1.0.1 | test/common.rb |