tx · 9RfGgUyq7ro32bWi16KqoMwV2vvAYegecUoH8XV89BuK
3MukPacWskGGNcT8ubWWzSwVPa9ah9KHvuB: -0.01500000 Waves
2019.06.24 16:41 [556235] smart account 3MukPacWskGGNcT8ubWWzSwVPa9ah9KHvuB > SELF 0.00000000 Waves
{
"type": 13,
"id": "9RfGgUyq7ro32bWi16KqoMwV2vvAYegecUoH8XV89BuK",
"fee": 1500000,
"feeAssetId": null,
"timestamp": 1561383669813,
"version": 1,
"sender": "3MukPacWskGGNcT8ubWWzSwVPa9ah9KHvuB",
"senderPublicKey": "H3q3RM4MQSLjCTYpgaitRNz8cKHhMtcwoUfc2c86cfej",
"proofs": [
"2E2K3PpTx6ukwYeG8exDed6DzVo1xTXgBarLoBKVXCtRhez5stxf683GzLchvSKU4dQaepjM18KQhfrmT6Z6PDQV"
],
"script": "base64:AAIDAAAAAAAAAAAAAAACAAAAAAZwdWJLZXkCAAAALDI4NlNCb0Ria2U4WVFSdDdWQmdvTEdKM3Z6NGNpM0paN2NoRFNHQjVZU0syAAAAAAR0eElkAgAAACw5OWdpNXRNNWtVZUtSVTNIemd5a3J2NXU5WVU1d29FRmNhRjV4Uno3Nmo2VgAAAAEAAAABaQEAAAAJY2hlY2tTaWduAAAAAgAAAAZudW1iZXIAAAADcnNhBAAAAAZ2ZXJpZnkJAAH4AAAABAUAAAAGU0hBMjU2CQABmwAAAAEFAAAABHR4SWQJAAGbAAAAAQUAAAADcnNhCQACWQAAAAEFAAAABnB1YktleQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAZudW1iZXICAAAAB19WZXJpZnkFAAAABnZlcmlmeQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAZkPypD",
"chainId": 84,
"height": 556235,
"spentComplexity": 0
}
View: original | compacted
Prev: HgnHxbPkLuHzG3rTSMCHxfSRUZPw21GuhHbUtUip2T4t
Next: 44T7ekLSLtT7PJhngKt1dXYgnxd7KjHjYdLw18kX9zEB
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let pubKey = base58'286SBoDbke8YQRt7VBgoLGJ3vz4ci3JZ7chDSGB5YSK2' |
---|
| 4 | + | let pubKey = "286SBoDbke8YQRt7VBgoLGJ3vz4ci3JZ7chDSGB5YSK2" |
---|
5 | 5 | | |
---|
6 | 6 | | let txId = "99gi5tM5kUeKRU3Hzgykrv5u9YU5woEFcaF5xRz76j6V" |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(i) |
---|
9 | 9 | | func checkSign (number,rsa) = { |
---|
10 | | - | let verify = rsaVerify(SHA256, toBytes(txId), toBytes(rsa), pubKey) |
---|
| 10 | + | let verify = rsaVerify(SHA256, toBytes(txId), toBytes(rsa), fromBase58String(pubKey)) |
---|
11 | 11 | | WriteSet([DataEntry((number + "_Verify"), verify)]) |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let pubKey = base58'286SBoDbke8YQRt7VBgoLGJ3vz4ci3JZ7chDSGB5YSK2' |
---|
| 4 | + | let pubKey = "286SBoDbke8YQRt7VBgoLGJ3vz4ci3JZ7chDSGB5YSK2" |
---|
5 | 5 | | |
---|
6 | 6 | | let txId = "99gi5tM5kUeKRU3Hzgykrv5u9YU5woEFcaF5xRz76j6V" |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(i) |
---|
9 | 9 | | func checkSign (number,rsa) = { |
---|
10 | | - | let verify = rsaVerify(SHA256, toBytes(txId), toBytes(rsa), pubKey) |
---|
| 10 | + | let verify = rsaVerify(SHA256, toBytes(txId), toBytes(rsa), fromBase58String(pubKey)) |
---|
11 | 11 | | WriteSet([DataEntry((number + "_Verify"), verify)]) |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Verifier(tx) |
---|
16 | 16 | | func verify () = true |
---|
17 | 17 | | |
---|