tx · G5196o2JdZ1R7ThRg6vWjMR11A6GmhrxuediFzENE41R
3MukPacWskGGNcT8ubWWzSwVPa9ah9KHvuB: -0.01500000 Waves
2019.06.27 11:53 [560318] smart account 3MukPacWskGGNcT8ubWWzSwVPa9ah9KHvuB > SELF 0.00000000 Waves
{
"type": 13,
"id": "G5196o2JdZ1R7ThRg6vWjMR11A6GmhrxuediFzENE41R",
"fee": 1500000,
"feeAssetId": null,
"timestamp": 1561625589814,
"version": 1,
"sender": "3MukPacWskGGNcT8ubWWzSwVPa9ah9KHvuB",
"senderPublicKey": "H3q3RM4MQSLjCTYpgaitRNz8cKHhMtcwoUfc2c86cfej",
"proofs": [
"3Gj5ycHhfvLnCrrST3iB9qStT2YhZc2cffPgibaS1N5NkNTvFiDbMSM4NH98YBegQwYbK9GynibHCUJJQcQ4JvvM"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAJAAAAAAZwdWJLZXkJAAJbAAAAAQIAAADfYmFzZTY0Ok1JR2ZNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0R05BRENCaVFLQmdRRGR0UkNGcjVtZ0lSbHlVaUxBa2JhdC9COGI1SU5DKzFqR2VtTzhNQk05bUFDU3NGRVdUWTJCYXc4L3BYcWlzVUw2TVM0ZWcycDhTenRjbHhWRzVOQjl3R2FFN3A0ZGc0cWlSWFZPYUFxdkx6RGJKdG5XdmhyQlFya1pLYUExRnNXZmZnSjZzeXN3cDk0ZWtDYzA2TkxSd3k0WWhHMXZwTTJxSFptZXJDRkM5UUlEQVFBQgAAAAAEcHJpdgIAAAAsSGtLbTVqS3FENEZ5Q3ZQRlBwc0VGZWhHb2JDRjhIQW5zQTdwQWZEOHBkcjEAAAAABXR4SWQxCQABmwAAAAECAAAALDk5Z2k1dE01a1VlS1JVM0h6Z3lrcnY1dTlZVTV3b0VGY2FGNXhSejc2ajZWAAAAAARzaWduCQACWwAAAAECAAAAs2Jhc2U2NDptMHp3UDloSnZ0Nm9NWFk4UEdPMU5GekxvRE9QU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spentComplexity": 0
}
View: original | compacted
Prev: CxfAndoUZNAPVunnudVDXuu2ggeEQ66sdQsjHwaJEfmm
Next: 3tVdCfgNmJAPapKndyFMtxE3pGSA9NMBgKXZe8RxWwmZ
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | let priv = "HkKm5jKqD4FyCvPFPpsEFehGobCF8HAnsA7pAfD8pdr1" |
---|
7 | 7 | | |
---|
8 | | - | let txId = toBytes("99gi5tM5kUeKRU3Hzgykrv5u9YU5woEFcaF5xRz76j6V") |
---|
| 8 | + | let txId1 = toBytes("99gi5tM5kUeKRU3Hzgykrv5u9YU5woEFcaF5xRz76j6V") |
---|
9 | 9 | | |
---|
10 | | - | let signature = fromBase64String("base64:m0zwP9hJvt6oMXY8PGO1NFzLoDOPQ6MbMmxnfqpwFzxgOYMSOk+aV7PgjzuhCramncA2SM5L1/4Ga8LlanPIKimuAYndFMLKLJ7tp3S/oW/TiqU//yWBohRsuEIFjgS3Kq/kZ3HvnmBWfFFlgVRjo3OeDs1b7XLHUHsXLKOLgyU=") |
---|
| 10 | + | let sign = fromBase64String("base64:m0zwP9hJvt6oMXY8PGO1NFzLoDOPQ6MbMmxnfqpwFzxgOYMSOk+aV7PgjzuhCramncA2SM5L1/4Ga8LlanPIKimuAYndFMLKLJ7tp3S/oW/TiqU//yWBohRsuEIFjgS3Kq/kZ3HvnmBWfFFlgVRjo3OeDs1b7XLHUHsXLKOLgyU=") |
---|
11 | 11 | | |
---|
12 | 12 | | let RSAPUBLIC = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqlAiANSmBpDHYKP9sKgeN/l1bAb28g/tGlgDkwT5FiMN4X3pwdvdxE7mvSR8/41dU9rx4jG+6tZpb1ULVDPs431tR2IRaTXw5Cj+Ac2vhL+5JamCerGD1UW+bh/EGQtxo8W3YLDrofXB5QHJx4Pkz2Kgf+oS/C8hHuB/U4krO76U0507GTjZPP9kRQ0uLSMeqQXt8wXS+nMp5wajqxPpDLMaSREgsKwv/AEkP4dzpTYbikLBYl4qtdJsD84HLFSkiwd3BhcOrPjoIYmLxQuBD5TIMKTKD3sdZgaY9rsyqx3A00innyxD6zp3b4gFpUOX8JxKZdEC2myEqleNgg7GzwIDAQAB") |
---|
13 | 13 | | |
---|
| 14 | + | let privateKey = "MIICXgIBAAKBgQDGV1yyjdQDx8hfbZI/8QIRnvFgDE1HyNUg2HHllrbSXxRzK62uGagkRviGZoSgB20U/kk/N0s0B5wr5sK6uhgXOssAE9bwaqvESl1JKpb+G6oz2NtqtWdkS/AwHfboJLwx182I8aymN8KF5pfEHmo00gUJum6IdJWAEF0nK5HS9wIDAQABAoGBAMRFbVjQGs8G41Tzo/cccvSm+asXYV448hdHuSX+B7qUFjOGNJ+FiiskBAlT58hIsPxGSouBFy1MnpGfEHIhd3W+GLN8o208g10bzmoYE0a7Wmc6KwXrkhu62XMoKK3rEoAzxzD8NWpC5DAAjUG39OsWQdbzwRal1nxlbyPkucZxAkEA8yIq1b+Z3ZIvBcIEP57xc+Y/IgssGvc7feTbrdsVWwtRq04MlI01nYEEP9XIC3JEtlxZ7C8zTpjoK/cylPGUKQJBANDWYCpk34mivZP7hM7v5BTi89TjOyuvpePPOA7IUu/WOo5bLLk+0dppOLduNUpoNZnjiZu+jSmA134pqGN2Eh8CQCHuMMAnvxdW4U0SaHlgex3Lkh/0IzGYMys8lxPKMU7FY55ehA7vLf5PFQK7mPFP/xrcBIibhbOAT1ZjZyG2HRECQQDDmBUnf6TR3wdaA1eHDa18Vnfy6wQvTWq87Abf6YWsNeRQElrYAVtBCg3h1ym4T9PsFu16XkUOGys5ccDRrvMXAkEAhisdzcp7pAAIRZ7gyN2ude0DUI26W4dLd8LoE3wTJIu6p5jiApWotBbxehVlY9TVtzQTA0NXYflmVKfotVPgZQ==" |
---|
| 15 | + | |
---|
| 16 | + | let publicKey = fromBase64String("MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDGV1yyjdQDx8hfbZI/8QIRnvFgDE1HyNUg2HHllrbSXxRzK62uGagkRviGZoSgB20U/kk/N0s0B5wr5sK6uhgXOssAE9bwaqvESl1JKpb+G6oz2NtqtWdkS/AwHfboJLwx182I8aymN8KF5pfEHmo00gUJum6IdJWAEF0nK5HS9wIDAQAB") |
---|
| 17 | + | |
---|
| 18 | + | let txId = fromBase64String("OTlnaTV0TTVrVWVLUlUzSHpneWtydjV1OVlVNXdvRUZjYUY1eFJ6NzZqNlY=") |
---|
| 19 | + | |
---|
| 20 | + | let signature = fromBase64String("xTZMTrqOumK2lP4UNi/U7Z/T41Nq1h4AtfbuoI74TuomM/LafIRw+wmledW3p5bTuNYfBBf5+JpCz545STWCC+/Zq1Xd6flBBCzXI1eq+6YFP4Qiri/RKquD9w2O5x0DFX2NwfrxzKLgtMaiQtL6ndt6farvotbIh0Z3YtwH+Nc=") |
---|
| 21 | + | |
---|
14 | 22 | | @Callable(i) |
---|
15 | 23 | | func checkSign (number) = { |
---|
16 | | - | let a = if (rsaVerify(SHA256, txId, signature, pubKey)) |
---|
| 24 | + | let a = if (rsaVerify(SHA256, txId, signature, publicKey)) |
---|
17 | 25 | | then 1 |
---|
18 | 26 | | else 2 |
---|
19 | | - | WriteSet([DataEntry((number + "_Pub"), pubKey), DataEntry((number + "_Private"), toBytes(priv)), DataEntry((number + "_TXID"), txId), DataEntry((number + "_Verify"), a)]) |
---|
| 27 | + | WriteSet([DataEntry((number + "_Pub"), publicKey), DataEntry((number + "_Private"), privateKey), DataEntry((number + "_TXID"), txId), DataEntry((number + "_Verify"), a)]) |
---|
20 | 28 | | } |
---|
21 | 29 | | |
---|
22 | 30 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let pubKey = fromBase64String("base64:MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDdtRCFr5mgIRlyUiLAkbat/B8b5INC+1jGemO8MBM9mACSsFEWTY2Baw8/pXqisUL6MS4eg2p8SztclxVG5NB9wGaE7p4dg4qiRXVOaAqvLzDbJtnWvhrBQrkZKaA1FsWffgJ6syswp94ekCc06NLRwy4YhG1vpM2qHZmerCFC9QIDAQAB") |
---|
5 | 5 | | |
---|
6 | 6 | | let priv = "HkKm5jKqD4FyCvPFPpsEFehGobCF8HAnsA7pAfD8pdr1" |
---|
7 | 7 | | |
---|
8 | | - | let txId = toBytes("99gi5tM5kUeKRU3Hzgykrv5u9YU5woEFcaF5xRz76j6V") |
---|
| 8 | + | let txId1 = toBytes("99gi5tM5kUeKRU3Hzgykrv5u9YU5woEFcaF5xRz76j6V") |
---|
9 | 9 | | |
---|
10 | | - | let signature = fromBase64String("base64:m0zwP9hJvt6oMXY8PGO1NFzLoDOPQ6MbMmxnfqpwFzxgOYMSOk+aV7PgjzuhCramncA2SM5L1/4Ga8LlanPIKimuAYndFMLKLJ7tp3S/oW/TiqU//yWBohRsuEIFjgS3Kq/kZ3HvnmBWfFFlgVRjo3OeDs1b7XLHUHsXLKOLgyU=") |
---|
| 10 | + | let sign = fromBase64String("base64:m0zwP9hJvt6oMXY8PGO1NFzLoDOPQ6MbMmxnfqpwFzxgOYMSOk+aV7PgjzuhCramncA2SM5L1/4Ga8LlanPIKimuAYndFMLKLJ7tp3S/oW/TiqU//yWBohRsuEIFjgS3Kq/kZ3HvnmBWfFFlgVRjo3OeDs1b7XLHUHsXLKOLgyU=") |
---|
11 | 11 | | |
---|
12 | 12 | | let RSAPUBLIC = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqlAiANSmBpDHYKP9sKgeN/l1bAb28g/tGlgDkwT5FiMN4X3pwdvdxE7mvSR8/41dU9rx4jG+6tZpb1ULVDPs431tR2IRaTXw5Cj+Ac2vhL+5JamCerGD1UW+bh/EGQtxo8W3YLDr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let publicKey = fromBase64String("MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDGV1yyjdQDx8hfbZI/8QIRnvFgDE1HyNUg2HHllrbSXxRzK62uGagkRviGZoSgB20U/kk/N0s0B5wr5sK6uhgXOssAE9bwaqvESl1JKpb+G6oz2NtqtWdkS/AwHfboJLwx182I8aymN8KF5pfEHmo00gUJum6IdJWAEF0nK5HS9wIDAQAB") |
---|
| 17 | + | |
---|
| 18 | + | let txId = fromBase64String("OTlnaTV0TTVrVWVLUlUzSHpneWtydjV1OVlVNXdvRUZjYUY1eFJ6NzZqNlY=") |
---|
| 19 | + | |
---|
| 20 | + | let signature = fromBase64String("xTZMTrqOumK2lP4UNi/U7Z/T41Nq1h4AtfbuoI74TuomM/LafIRw+wmledW3p5bTuNYfBBf5+JpCz545STWCC+/Zq1Xd6flBBCzXI1eq+6YFP4Qiri/RKquD9w2O5x0DFX2NwfrxzKLgtMaiQtL6ndt6farvotbIh0Z3YtwH+Nc=") |
---|
| 21 | + | |
---|
14 | 22 | | @Callable(i) |
---|
15 | 23 | | func checkSign (number) = { |
---|
16 | | - | let a = if (rsaVerify(SHA256, txId, signature, pubKey)) |
---|
| 24 | + | let a = if (rsaVerify(SHA256, txId, signature, publicKey)) |
---|
17 | 25 | | then 1 |
---|
18 | 26 | | else 2 |
---|
19 | | - | WriteSet([DataEntry((number + "_Pub"), pubKey), DataEntry((number + "_Private"), toBytes(priv)), DataEntry((number + "_TXID"), txId), DataEntry((number + "_Verify"), a)]) |
---|
| 27 | + | WriteSet([DataEntry((number + "_Pub"), publicKey), DataEntry((number + "_Private"), privateKey), DataEntry((number + "_TXID"), txId), DataEntry((number + "_Verify"), a)]) |
---|
20 | 28 | | } |
---|
21 | 29 | | |
---|
22 | 30 | | |
---|
23 | 31 | | @Verifier(tx) |
---|
24 | 32 | | func verify () = true |
---|
25 | 33 | | |
---|