tx · HV97ECnYtakj1gAo33mTXs6tGsdTQvbRbYvNDsQWgwCv

3N2kVUxYqFz4rHNgnVr7ffhsnC7DptJ1BzH:  -0.01000000 Waves

2023.04.21 20:38 [2544629] smart account 3N2kVUxYqFz4rHNgnVr7ffhsnC7DptJ1BzH > SELF 0.00000000 Waves

{ "type": 13, "id": "HV97ECnYtakj1gAo33mTXs6tGsdTQvbRbYvNDsQWgwCv", "fee": 1000000, "feeAssetId": null, "timestamp": 1682098787107, "version": 2, "chainId": 84, "sender": "3N2kVUxYqFz4rHNgnVr7ffhsnC7DptJ1BzH", "senderPublicKey": "8cCvpHrqwPyT7CYYANjtE4ZUgLzCDCqFDMVAX5RRZMPN", "proofs": [ "QiF6nz9oN3gprfi6RNhgDdQtL5PVCnVpqu7JcU32YAeDXLz3Txz6yPGpMhticniUbNMSHxHjbnJiQ5yxN8XBJmN" ], "script": "base64:BgJNCAISBwoFCAgICAgSDAoKCAgICAgICAgICBIECgIICBIMCgoICAgICAgICAgIEggKBggICAgICBIDCgEIEgMKAQgSBAoCCAgSBAoCCAgFABBhZG1pbl93YWxsZXRfb25lAiMzTXBEZkRUMzU5cVNTbU5GWm5NZW9QUXB5SkEyVTFLNTF1NQAQYWRtaW5fd2FsbGV0X3R3bwIjM04zRENuZ2ppZGl2a0piVEp3RlRFdmJZUlRmZkNXVkJMQ0wAEmFkbWluX3dhbGxldF90aHJlZQIjM044eDltYjQ4MWkyazZjRzdROVhVVjNlNW56aDFtZHpzTnkBFGNoZWNrX2FkbWluc193YWxsZXRzAQt1c2VyX3dhbGxldAMDAwkAAAIFC3VzZXJfd2FsbGV0BRBhZG1pbl93YWxsZXRfb25lBgkAAAIFC3VzZXJfd2FsbGV0BRBhZG1pbl93YWxsZXRfdHdvBgkAAAIFC3VzZXJfd2FsbGV0BRJhZG1pbl93YWxsZXRfdGhyZWUGBwENdHJ5R2V0SW50ZWdlcgEDa2V5BAckbWF0Y2gwCQCaCAIFBHRoaXMFA2tleQMJAAECBQckb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gkArAICCQCsAgICBnN0b3J5XwULc3RvcnlfdHhfaWQCDF9mYXZvcml0ZV9pZAkAZAIFAmlkAAEJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkArAICAgV1c2VyXwUGd2FsbGV0AgxfZmF2b3JpdGVfaWQJAGQCBQd1c2VyX2lkAAEFA25pbAkAAgECVUVSUlJPUiAhLCBhZGRfdG9fZmF2b3JpdGVzLCBNRVNTQUdFOiBzb3JyeSB5b3UgYXJlIG5vdCBhbGxvdyB0byBpbnZva2UgdGhpcyBmdW5hY3Rpb24BAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5Hc/irA==", "height": 2544629, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DLmy1qSAcEb1sHcSKFLR4Xfbwe7NnYde15pgqNPSVsbp Next: BqfhcdR9oTcC49QSDQt6k6pKk5XAxGZHJin2XqjTdfSh Diff:
OldNewDifferences
3333 else d(toString(j.caller)))
3434 then {
3535 let p = toBase58String(j.transactionId)
36-[StringEntry((("blog_" + p) + "_publisher"), k), StringEntry((("blog_" + p) + "_arweave_tx_id"), m), StringEntry((("blog_" + p) + "_signature"), n), StringEntry((("blog_" + p) + "_blog_cover"), o), StringEntry((("blog_" + p) + "_titel"), l)]
36+ let q = lastBlock
37+ let r = q.timestamp
38+[StringEntry((("blog_" + p) + "_publisher"), k), StringEntry((("blog_" + p) + "_arweave_tx_id"), m), StringEntry((("blog_" + p) + "_signature"), n), StringEntry((("blog_" + p) + "_blog_cover"), o), StringEntry((("blog_" + p) + "_titel"), l), IntegerEntry((("blog_" + p) + "_publish_time"), r)]
3739 }
3840 else throw("ERRROR !, add_blog, MESSAGE: sorry you are not allow to invoke this funaction")
3941
4042
4143
4244 @Callable(j)
43-func add_story (k,l,m,n,q,r,s,t,u,v) = if (if ((toString(j.caller) == k))
45+func add_story (k,l,m,n,s,t,u,v,w,x) = if (if ((toString(j.caller) == k))
4446 then true
4547 else d(toString(j.caller)))
4648 then {
4749 let p = toBase58String(j.transactionId)
48-[StringEntry((("story_" + p) + "_publisher"), k), StringEntry((("story_" + p) + "_arweave_tx_id"), m), StringEntry((("story_" + p) + "_signature"), n), StringEntry((("story_" + p) + "_story_cover"), q), StringEntry((("story_" + p) + "_titel"), l), StringEntry((("story_" + p) + "_description"), r), StringEntry((("story_" + p) + "_tags"), s), StringEntry((("story_" + p) + "_language"), t), StringEntry((("story_" + p) + "_categorys"), u), StringEntry((("story_" + p) + "_status"), v)]
50+ let q = lastBlock
51+ let r = q.timestamp
52+[StringEntry((("story_" + p) + "_publisher"), k), StringEntry((("story_" + p) + "_arweave_tx_id"), m), StringEntry((("story_" + p) + "_signature"), n), StringEntry((("story_" + p) + "_story_cover"), s), StringEntry((("story_" + p) + "_titel"), l), StringEntry((("story_" + p) + "_description"), t), StringEntry((("story_" + p) + "_tags"), u), StringEntry((("story_" + p) + "_language"), v), StringEntry((("story_" + p) + "_categorys"), w), StringEntry((("story_" + p) + "_status"), x), IntegerEntry((("story_" + p) + "_publish_time"), r)]
4953 }
5054 else throw("ERRROR !, add_story, MESSAGE: sorry you are not allow to invoke this funaction")
5155
5256
5357
5458 @Callable(j)
55-func add_chapter (w,x) = {
56- let y = f((("Story_" + w) + "_last_chapter_id"))
59+func add_chapter (y,z) = {
60+ let A = f((("Story_" + y) + "_last_chapter_id"))
5761 let p = toBase58String(j.transactionId)
58-[StringEntry(((("story_" + w) + "_chapter_") + toString(y)), p), StringEntry((("chapter_" + p) + "_arweave_tx_id"), x), StringEntry((("chapter_" + p) + "_story_tx_id"), w), IntegerEntry((("chapter_" + p) + "_id"), y), IntegerEntry((("Story_" + w) + "_last_chapter_id"), (y + 1))]
62+ let q = lastBlock
63+ let r = q.timestamp
64+[StringEntry(((("story_" + y) + "_chapter_") + toString(A)), p), StringEntry((("chapter_" + p) + "_arweave_tx_id"), z), StringEntry((("chapter_" + p) + "_story_tx_id"), y), IntegerEntry((("chapter_" + p) + "_id"), A), IntegerEntry((("story_" + y) + "_last_chapter_id"), (A + 1)), IntegerEntry((("chapter_" + p) + "_publish_time"), r)]
5965 }
6066
6167
6268
6369 @Callable(j)
64-func set_user_data (z,A,B,C,D,E,F,G,H,I) = if (if ((toString(j.caller) == z))
70+func set_user_data (B,C,D,E,F,G,H,I,J,K) = if (if ((toString(j.caller) == B))
6571 then true
6672 else d(toString(j.caller)))
67- then [StringEntry((("user_" + z) + "_joined"), "yes"), StringEntry((("user_" + z) + "_name"), A), StringEntry((("user_" + z) + "_imageLink"), B), StringEntry((("user_" + z) + "_coverLink"), C), StringEntry((("user_" + z) + "_bio"), D), StringEntry((("user_" + z) + "_googleAnalytics"), E), StringEntry((("user_" + z) + "_yandexAnalytics"), H), StringEntry((("user_" + z) + "_twitter"), F), StringEntry((("user_" + z) + "_telegram"), G), StringEntry((("user_" + z) + "_notes"), I)]
73+ then [StringEntry((("user_" + B) + "_joined"), "yes"), StringEntry((("user_" + B) + "_name"), C), StringEntry((("user_" + B) + "_imageLink"), D), StringEntry((("user_" + B) + "_coverLink"), E), StringEntry((("user_" + B) + "_bio"), F), StringEntry((("user_" + B) + "_googleAnalytics"), G), StringEntry((("user_" + B) + "_yandexAnalytics"), J), StringEntry((("user_" + B) + "_twitter"), H), StringEntry((("user_" + B) + "_telegram"), I), StringEntry((("user_" + B) + "_notes"), K)]
6874 else throw("ERRROR !, set_user_data, MESSAGE: sorry you are not allow to invoke this funaction")
6975
7076
7177
7278 @Callable(j)
73-func set_verified_user (z,A,F,G,J,I) = if (d(toString(j.caller)))
74- then [StringEntry((("user_" + z) + "_verified"), "yes"), StringEntry((("user_" + z) + "_verified_name"), A), StringEntry((("user_" + z) + "_verified_twitter"), F), StringEntry((("user_" + z) + "_verified_telegram"), G), StringEntry((("user_" + z) + "_verified_notes"), I)]
79+func set_verified_user (B,C,H,I,L,K) = if (d(toString(j.caller)))
80+ then [StringEntry((("user_" + B) + "_verified"), "yes"), StringEntry((("user_" + B) + "_verified_name"), C), StringEntry((("user_" + B) + "_verified_twitter"), H), StringEntry((("user_" + B) + "_verified_telegram"), I), StringEntry((("user_" + B) + "_verified_notes"), K)]
7581 else throw("ERRROR !, set_verified_user, MESSAGE: sorry you are not allow to invoke this funaction")
7682
7783
7884
7985 @Callable(j)
80-func add_blog_to_favorites (z,K) = if (if ((toString(j.caller) == z))
86+func follow_user (B) = {
87+ let M = toString(j.caller)
88+[StringEntry(((("user_" + B) + "_followed_by_") + M), "yes"), StringEntry(((("user_" + M) + "_follow") + B), "yes")]
89+ }
90+
91+
92+
93+@Callable(j)
94+func un_follow_user (B) = {
95+ let M = toString(j.caller)
96+[DeleteEntry(((("user_" + B) + "_followed_by_") + M)), DeleteEntry(((("user_" + M) + "_follow") + B))]
97+ }
98+
99+
100+
101+@Callable(j)
102+func add_blog_to_favorites (B,N) = if (if ((toString(j.caller) == B))
81103 then true
82104 else d(toString(j.caller)))
83105 then {
84- let L = f((("blog_" + K) + "_favorite_id"))
85- let M = f((("user_" + z) + "_favorite_id"))
86-[StringEntry(((("user_" + z) + "_blog_favorite_") + toString(M)), K), StringEntry(((("blog_" + K) + "_favorite_") + toString(L)), z), IntegerEntry((("blog_" + K) + "_favorite_id"), (L + 1)), IntegerEntry((("user_" + z) + "_favorite_id"), (M + 1))]
106+ let O = f((("blog_" + N) + "_favorite_id"))
107+ let P = f((("user_" + B) + "_favorite_id"))
108+[StringEntry(((("user_" + B) + "_blog_favorite_") + toString(P)), N), StringEntry(((("blog_" + N) + "_favorite_") + toString(O)), B), IntegerEntry((("blog_" + N) + "_favorite_id"), (O + 1)), IntegerEntry((("user_" + B) + "_favorite_id"), (P + 1))]
87109 }
88110 else throw("ERRROR !, add_to_favorites, MESSAGE: sorry you are not allow to invoke this funaction")
89111
90112
91113
92114 @Callable(j)
93-func add_story_to_favorites (z,w) = if (if ((toString(j.caller) == z))
115+func add_story_to_favorites (B,y) = if (if ((toString(j.caller) == B))
94116 then true
95117 else d(toString(j.caller)))
96118 then {
97- let L = f((("story_" + w) + "_favorite_id"))
98- let M = f((("user_" + z) + "_favorite_id"))
99-[StringEntry(((("user_" + z) + "_story_favorite_") + toString(M)), w), StringEntry(((("story_" + w) + "_favorite_") + toString(L)), z), IntegerEntry((("story_" + w) + "_favorite_id"), (L + 1)), IntegerEntry((("user_" + z) + "_favorite_id"), (M + 1))]
119+ let O = f((("story_" + y) + "_favorite_id"))
120+ let P = f((("user_" + B) + "_favorite_id"))
121+[StringEntry(((("user_" + B) + "_story_favorite_") + toString(P)), y), StringEntry(((("story_" + y) + "_favorite_") + toString(O)), B), IntegerEntry((("story_" + y) + "_favorite_id"), (O + 1)), IntegerEntry((("user_" + B) + "_favorite_id"), (P + 1))]
100122 }
101123 else throw("ERRROR !, add_to_favorites, MESSAGE: sorry you are not allow to invoke this funaction")
102124
103125
104-@Verifier(N)
105-func O () = sigVerify(N.bodyBytes, N.proofs[0], N.senderPublicKey)
126+@Verifier(Q)
127+func R () = sigVerify(Q.bodyBytes, Q.proofs[0], Q.senderPublicKey)
106128
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "3MpDfDT359qSSmNFZnMeoPQpyJA2U1K51u5"
55
66 let b = "3N3DCngjidivkJbTJwFTEvbYRTffCWVBLCL"
77
88 let c = "3N8x9mb481i2k6cG7Q9XUV3e5nzh1mdzsNy"
99
1010 func d (e) = if (if (if ((e == a))
1111 then true
1212 else (e == b))
1313 then true
1414 else (e == c))
1515 then true
1616 else false
1717
1818
1919 func f (g) = {
2020 let h = getInteger(this, g)
2121 if ($isInstanceOf(h, "Int"))
2222 then {
2323 let i = h
2424 i
2525 }
2626 else 0
2727 }
2828
2929
3030 @Callable(j)
3131 func add_blog (k,l,m,n,o) = if (if ((toString(j.caller) == k))
3232 then true
3333 else d(toString(j.caller)))
3434 then {
3535 let p = toBase58String(j.transactionId)
36-[StringEntry((("blog_" + p) + "_publisher"), k), StringEntry((("blog_" + p) + "_arweave_tx_id"), m), StringEntry((("blog_" + p) + "_signature"), n), StringEntry((("blog_" + p) + "_blog_cover"), o), StringEntry((("blog_" + p) + "_titel"), l)]
36+ let q = lastBlock
37+ let r = q.timestamp
38+[StringEntry((("blog_" + p) + "_publisher"), k), StringEntry((("blog_" + p) + "_arweave_tx_id"), m), StringEntry((("blog_" + p) + "_signature"), n), StringEntry((("blog_" + p) + "_blog_cover"), o), StringEntry((("blog_" + p) + "_titel"), l), IntegerEntry((("blog_" + p) + "_publish_time"), r)]
3739 }
3840 else throw("ERRROR !, add_blog, MESSAGE: sorry you are not allow to invoke this funaction")
3941
4042
4143
4244 @Callable(j)
43-func add_story (k,l,m,n,q,r,s,t,u,v) = if (if ((toString(j.caller) == k))
45+func add_story (k,l,m,n,s,t,u,v,w,x) = if (if ((toString(j.caller) == k))
4446 then true
4547 else d(toString(j.caller)))
4648 then {
4749 let p = toBase58String(j.transactionId)
48-[StringEntry((("story_" + p) + "_publisher"), k), StringEntry((("story_" + p) + "_arweave_tx_id"), m), StringEntry((("story_" + p) + "_signature"), n), StringEntry((("story_" + p) + "_story_cover"), q), StringEntry((("story_" + p) + "_titel"), l), StringEntry((("story_" + p) + "_description"), r), StringEntry((("story_" + p) + "_tags"), s), StringEntry((("story_" + p) + "_language"), t), StringEntry((("story_" + p) + "_categorys"), u), StringEntry((("story_" + p) + "_status"), v)]
50+ let q = lastBlock
51+ let r = q.timestamp
52+[StringEntry((("story_" + p) + "_publisher"), k), StringEntry((("story_" + p) + "_arweave_tx_id"), m), StringEntry((("story_" + p) + "_signature"), n), StringEntry((("story_" + p) + "_story_cover"), s), StringEntry((("story_" + p) + "_titel"), l), StringEntry((("story_" + p) + "_description"), t), StringEntry((("story_" + p) + "_tags"), u), StringEntry((("story_" + p) + "_language"), v), StringEntry((("story_" + p) + "_categorys"), w), StringEntry((("story_" + p) + "_status"), x), IntegerEntry((("story_" + p) + "_publish_time"), r)]
4953 }
5054 else throw("ERRROR !, add_story, MESSAGE: sorry you are not allow to invoke this funaction")
5155
5256
5357
5458 @Callable(j)
55-func add_chapter (w,x) = {
56- let y = f((("Story_" + w) + "_last_chapter_id"))
59+func add_chapter (y,z) = {
60+ let A = f((("Story_" + y) + "_last_chapter_id"))
5761 let p = toBase58String(j.transactionId)
58-[StringEntry(((("story_" + w) + "_chapter_") + toString(y)), p), StringEntry((("chapter_" + p) + "_arweave_tx_id"), x), StringEntry((("chapter_" + p) + "_story_tx_id"), w), IntegerEntry((("chapter_" + p) + "_id"), y), IntegerEntry((("Story_" + w) + "_last_chapter_id"), (y + 1))]
62+ let q = lastBlock
63+ let r = q.timestamp
64+[StringEntry(((("story_" + y) + "_chapter_") + toString(A)), p), StringEntry((("chapter_" + p) + "_arweave_tx_id"), z), StringEntry((("chapter_" + p) + "_story_tx_id"), y), IntegerEntry((("chapter_" + p) + "_id"), A), IntegerEntry((("story_" + y) + "_last_chapter_id"), (A + 1)), IntegerEntry((("chapter_" + p) + "_publish_time"), r)]
5965 }
6066
6167
6268
6369 @Callable(j)
64-func set_user_data (z,A,B,C,D,E,F,G,H,I) = if (if ((toString(j.caller) == z))
70+func set_user_data (B,C,D,E,F,G,H,I,J,K) = if (if ((toString(j.caller) == B))
6571 then true
6672 else d(toString(j.caller)))
67- then [StringEntry((("user_" + z) + "_joined"), "yes"), StringEntry((("user_" + z) + "_name"), A), StringEntry((("user_" + z) + "_imageLink"), B), StringEntry((("user_" + z) + "_coverLink"), C), StringEntry((("user_" + z) + "_bio"), D), StringEntry((("user_" + z) + "_googleAnalytics"), E), StringEntry((("user_" + z) + "_yandexAnalytics"), H), StringEntry((("user_" + z) + "_twitter"), F), StringEntry((("user_" + z) + "_telegram"), G), StringEntry((("user_" + z) + "_notes"), I)]
73+ then [StringEntry((("user_" + B) + "_joined"), "yes"), StringEntry((("user_" + B) + "_name"), C), StringEntry((("user_" + B) + "_imageLink"), D), StringEntry((("user_" + B) + "_coverLink"), E), StringEntry((("user_" + B) + "_bio"), F), StringEntry((("user_" + B) + "_googleAnalytics"), G), StringEntry((("user_" + B) + "_yandexAnalytics"), J), StringEntry((("user_" + B) + "_twitter"), H), StringEntry((("user_" + B) + "_telegram"), I), StringEntry((("user_" + B) + "_notes"), K)]
6874 else throw("ERRROR !, set_user_data, MESSAGE: sorry you are not allow to invoke this funaction")
6975
7076
7177
7278 @Callable(j)
73-func set_verified_user (z,A,F,G,J,I) = if (d(toString(j.caller)))
74- then [StringEntry((("user_" + z) + "_verified"), "yes"), StringEntry((("user_" + z) + "_verified_name"), A), StringEntry((("user_" + z) + "_verified_twitter"), F), StringEntry((("user_" + z) + "_verified_telegram"), G), StringEntry((("user_" + z) + "_verified_notes"), I)]
79+func set_verified_user (B,C,H,I,L,K) = if (d(toString(j.caller)))
80+ then [StringEntry((("user_" + B) + "_verified"), "yes"), StringEntry((("user_" + B) + "_verified_name"), C), StringEntry((("user_" + B) + "_verified_twitter"), H), StringEntry((("user_" + B) + "_verified_telegram"), I), StringEntry((("user_" + B) + "_verified_notes"), K)]
7581 else throw("ERRROR !, set_verified_user, MESSAGE: sorry you are not allow to invoke this funaction")
7682
7783
7884
7985 @Callable(j)
80-func add_blog_to_favorites (z,K) = if (if ((toString(j.caller) == z))
86+func follow_user (B) = {
87+ let M = toString(j.caller)
88+[StringEntry(((("user_" + B) + "_followed_by_") + M), "yes"), StringEntry(((("user_" + M) + "_follow") + B), "yes")]
89+ }
90+
91+
92+
93+@Callable(j)
94+func un_follow_user (B) = {
95+ let M = toString(j.caller)
96+[DeleteEntry(((("user_" + B) + "_followed_by_") + M)), DeleteEntry(((("user_" + M) + "_follow") + B))]
97+ }
98+
99+
100+
101+@Callable(j)
102+func add_blog_to_favorites (B,N) = if (if ((toString(j.caller) == B))
81103 then true
82104 else d(toString(j.caller)))
83105 then {
84- let L = f((("blog_" + K) + "_favorite_id"))
85- let M = f((("user_" + z) + "_favorite_id"))
86-[StringEntry(((("user_" + z) + "_blog_favorite_") + toString(M)), K), StringEntry(((("blog_" + K) + "_favorite_") + toString(L)), z), IntegerEntry((("blog_" + K) + "_favorite_id"), (L + 1)), IntegerEntry((("user_" + z) + "_favorite_id"), (M + 1))]
106+ let O = f((("blog_" + N) + "_favorite_id"))
107+ let P = f((("user_" + B) + "_favorite_id"))
108+[StringEntry(((("user_" + B) + "_blog_favorite_") + toString(P)), N), StringEntry(((("blog_" + N) + "_favorite_") + toString(O)), B), IntegerEntry((("blog_" + N) + "_favorite_id"), (O + 1)), IntegerEntry((("user_" + B) + "_favorite_id"), (P + 1))]
87109 }
88110 else throw("ERRROR !, add_to_favorites, MESSAGE: sorry you are not allow to invoke this funaction")
89111
90112
91113
92114 @Callable(j)
93-func add_story_to_favorites (z,w) = if (if ((toString(j.caller) == z))
115+func add_story_to_favorites (B,y) = if (if ((toString(j.caller) == B))
94116 then true
95117 else d(toString(j.caller)))
96118 then {
97- let L = f((("story_" + w) + "_favorite_id"))
98- let M = f((("user_" + z) + "_favorite_id"))
99-[StringEntry(((("user_" + z) + "_story_favorite_") + toString(M)), w), StringEntry(((("story_" + w) + "_favorite_") + toString(L)), z), IntegerEntry((("story_" + w) + "_favorite_id"), (L + 1)), IntegerEntry((("user_" + z) + "_favorite_id"), (M + 1))]
119+ let O = f((("story_" + y) + "_favorite_id"))
120+ let P = f((("user_" + B) + "_favorite_id"))
121+[StringEntry(((("user_" + B) + "_story_favorite_") + toString(P)), y), StringEntry(((("story_" + y) + "_favorite_") + toString(O)), B), IntegerEntry((("story_" + y) + "_favorite_id"), (O + 1)), IntegerEntry((("user_" + B) + "_favorite_id"), (P + 1))]
100122 }
101123 else throw("ERRROR !, add_to_favorites, MESSAGE: sorry you are not allow to invoke this funaction")
102124
103125
104-@Verifier(N)
105-func O () = sigVerify(N.bodyBytes, N.proofs[0], N.senderPublicKey)
126+@Verifier(Q)
127+func R () = sigVerify(Q.bodyBytes, Q.proofs[0], Q.senderPublicKey)
106128

github/deemru/w8io/026f985 
52.54 ms