tx · ECy1PP4tUqVs8SVxy59mmusX7q428344VfqGpyWKBtBL
3MukPacWskGGNcT8ubWWzSwVPa9ah9KHvuB: -0.01500000 Waves
2019.06.27 12:04 [560329] smart account 3MukPacWskGGNcT8ubWWzSwVPa9ah9KHvuB > SELF 0.00000000 Waves
{
"type": 13,
"id": "ECy1PP4tUqVs8SVxy59mmusX7q428344VfqGpyWKBtBL",
"fee": 1500000,
"feeAssetId": null,
"timestamp": 1561626295564,
"version": 1,
"sender": "3MukPacWskGGNcT8ubWWzSwVPa9ah9KHvuB",
"senderPublicKey": "H3q3RM4MQSLjCTYpgaitRNz8cKHhMtcwoUfc2c86cfej",
"proofs": [
"3WrR5xT3anNHdyKiy5Z3cL7CVgHMvRcjNjUPBDWV7aF9UxM2STzddNhB3tbmV7RTn6D6PuBhshbmuR9PMaWJnAnR"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAJAAAAAAZwdWJLZXkJAAJbAAAAAQIAAADfYmFzZTY0Ok1JR2ZNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0R05BRENCaVFLQmdRRGR0UkNGcjVtZ0lSbHlVaUxBa2JhdC9COGI1SU5DKzFqR2VtTzhNQk05bUFDU3NGRVdUWTJCYXc4L3BYcWlzVUw2TVM0ZWcycDhTenRjbHhWRzVOQjl3R2FFN3A0ZGc0cWlSWFZPYUFxdkx6RGJKdG5XdmhyQlFya1pLYUExRnNXZmZnSjZzeXN3cDk0ZWtDYzA2TkxSd3k0WWhHMXZwTTJxSFptZXJDRkM5UUlEQVFBQgAAAAAEcHJpdgIAAAAsSGtLbTVqS3FENEZ5Q3ZQRlBwc0VGZWhHb2JDRjhIQW5zQTdwQWZEOHBkcjEAAAAABXR4SWQxCQABmwAAAAECAAAALDk5Z2k1dE01a1VlS1JVM0h6Z3lrcnY1dTlZVTV3b0VGY2FGNXhSejc2ajZWAAAAAARzaWduCQACWwAAAAECAAAAs2Jhc2U2NDptMHp3UDloSnZ0Nm9NWFk4UEdPMU5GekxvRE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
"spentComplexity": 0
}
View: original | compacted
Prev: AEkz7kuBWd9bWYeRZdNvPJo7wkxSvHRGEkjQVBe5rC1p
Next: BGKh6ioULDBR7THbmeZcPLYfhE5V9TQ576L9nMAwREMm
Diff:
Old | New | | Differences |
---|
15 | 15 | | |
---|
16 | 16 | | let publicKey = fromBase64String("base64:MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDGV1yyjdQDx8hfbZI/8QIRnvFgDE1HyNUg2HHllrbSXxRzK62uGagkRviGZoSgB20U/kk/N0s0B5wr5sK6uhgXOssAE9bwaqvESl1JKpb+G6oz2NtqtWdkS/AwHfboJLwx182I8aymN8KF5pfEHmo00gUJum6IdJWAEF0nK5HS9wIDAQAB") |
---|
17 | 17 | | |
---|
18 | | - | let txId = fromBase64String("base64:OTlnaTV0TTVrVWVLUlUzSHpneWtydjV1OVlVNXdvRUZjYUY1eFJ6NzZqNlY=") |
---|
| 18 | + | let txId = toBytes("base64:OTlnaTV0TTVrVWVLUlUzSHpneWtydjV1OVlVNXdvRUZjYUY1eFJ6NzZqNlY=") |
---|
19 | 19 | | |
---|
20 | | - | let signature = fromBase64String("base64:xTZMTrqOumK2lP4UNi/U7Z/T41Nq1h4AtfbuoI74TuomM/LafIRw+wmledW3p5bTuNYfBBf5+JpCz545STWCC+/Zq1Xd6flBBCzXI1eq+6YFP4Qiri/RKquD9w2O5x0DFX2NwfrxzKLgtMaiQtL6ndt6farvotbIh0Z3YtwH+Nc=") |
---|
| 20 | + | let signature = toBytes("xTZMTrqOumK2lP4UNi/U7Z/T41Nq1h4AtfbuoI74TuomM/LafIRw+wmledW3p5bTuNYfBBf5+JpCz545STWCC+/Zq1Xd6flBBCzXI1eq+6YFP4Qiri/RKquD9w2O5x0DFX2NwfrxzKLgtMaiQtL6ndt6farvotbIh0Z3YtwH+Nc=") |
---|
21 | 21 | | |
---|
22 | 22 | | @Callable(i) |
---|
23 | 23 | | func checkSign (number) = { |
---|
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 | 8 | | let txId1 = toBytes("99gi5tM5kUeKRU3Hzgykrv5u9YU5woEFcaF5xRz76j6V") |
---|
9 | 9 | | |
---|
10 | 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 | 14 | | let privateKey = "MIICXgIBAAKBgQDGV1yyjdQDx8hfbZI/8QIRnvFgDE1HyNUg2HHllrbSXxRzK62uGagkRviGZoSgB20U/kk/N0s0B5wr5sK6uhgXOssAE9bwaqvESl1JKpb+G6oz2NtqtWdkS/AwHfboJLwx182I8aymN8KF5pfEHmo00gUJum6IdJWAEF0nK5HS9wIDAQABAoGBAMRFbVjQGs8G41Tzo/cccvSm+asXYV448hdHuSX+B7qUFjOGNJ+FiiskBAlT58hIsPxGSouBFy1MnpGfEHIhd3W+GLN8o208g10bzmoYE0a7Wmc6KwXrkhu62XMoKK3rEoAzxzD8NWpC5DAAjUG39OsWQdbzwRal1nxlbyPkucZxAkEA8yIq1b+Z3ZIvBcIEP57xc+Y/IgssGvc7feTbrdsVWwtRq04MlI01nYEEP9XIC3JEtlxZ7C8zTpjoK/cylPGUKQJBANDWYCpk34mivZP7hM7v5BTi89TjOyuvpePPOA7IUu/WOo5bLLk+0dppOLduNUpoNZnjiZu+jSmA134pqGN2Eh8CQCHuMMAnvxdW4U0SaHlgex3Lkh/0IzGYMys8lxPKMU7FY55ehA7vLf5PFQK7mPFP/xrcBIibhbOAT1ZjZyG2HRECQQDDmBUnf6TR3wdaA1eHDa18Vnfy6wQvTWq87Abf6YWsNeRQElrYAVtBCg3h1ym4T9PsFu16XkUOGys5ccDRrvMXAkEAhisdzcp7pAAIRZ7gyN2ude0DUI26W4dLd8LoE3wTJIu6p5jiApWotBbxehVlY9TVtzQTA0NXYflmVKfotVPgZQ==" |
---|
15 | 15 | | |
---|
16 | 16 | | let publicKey = fromBase64String("base64:MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDGV1yyjdQDx8hfbZI/8QIRnvFgDE1HyNUg2HHllrbSXxRzK62uGagkRviGZoSgB20U/kk/N0s0B5wr5sK6uhgXOssAE9bwaqvESl1JKpb+G6oz2NtqtWdkS/AwHfboJLwx182I8aymN8KF5pfEHmo00gUJum6IdJWAEF0nK5HS9wIDAQAB") |
---|
17 | 17 | | |
---|
18 | | - | let txId = fromBase64String("base64:OTlnaTV0TTVrVWVLUlUzSHpneWtydjV1OVlVNXdvRUZjYUY1eFJ6NzZqNlY=") |
---|
| 18 | + | let txId = toBytes("base64:OTlnaTV0TTVrVWVLUlUzSHpneWtydjV1OVlVNXdvRUZjYUY1eFJ6NzZqNlY=") |
---|
19 | 19 | | |
---|
20 | | - | let signature = fromBase64String("base64:xTZMTrqOumK2lP4UNi/U7Z/T41Nq1h4AtfbuoI74TuomM/LafIRw+wmledW3p5bTuNYfBBf5+JpCz545STWCC+/Zq1Xd6flBBCzXI1eq+6YFP4Qiri/RKquD9w2O5x0DFX2NwfrxzKLgtMaiQtL6ndt6farvotbIh0Z3YtwH+Nc=") |
---|
| 20 | + | let signature = toBytes("xTZMTrqOumK2lP4UNi/U7Z/T41Nq1h4AtfbuoI74TuomM/LafIRw+wmledW3p5bTuNYfBBf5+JpCz545STWCC+/Zq1Xd6flBBCzXI1eq+6YFP4Qiri/RKquD9w2O5x0DFX2NwfrxzKLgtMaiQtL6ndt6farvotbIh0Z3YtwH+Nc=") |
---|
21 | 21 | | |
---|
22 | 22 | | @Callable(i) |
---|
23 | 23 | | func checkSign (number) = { |
---|
24 | 24 | | let a = rsaVerify(SHA256, txId, signature, publicKey) |
---|
25 | 25 | | WriteSet([DataEntry((number + "_Pub"), publicKey), DataEntry((number + "_Private"), privateKey), DataEntry((number + "_TXID"), txId), DataEntry((number + "_Verify"), a)]) |
---|
26 | 26 | | } |
---|
27 | 27 | | |
---|
28 | 28 | | |
---|
29 | 29 | | @Verifier(tx) |
---|
30 | 30 | | func verify () = true |
---|
31 | 31 | | |
---|