tx · FjXu5TEVVQBZhpfTEAE3JzLaC57CGA5jvHU8DNRWvnLL
3MzbJGw4eewZaFchoewZQv9mMH25AoNgMb3: -0.01500000 Waves
2019.09.13 19:41 [674674] smart account 3MzbJGw4eewZaFchoewZQv9mMH25AoNgMb3 > SELF 0.00000000 Waves
{
"type": 13,
"id": "FjXu5TEVVQBZhpfTEAE3JzLaC57CGA5jvHU8DNRWvnLL",
"fee": 1500000,
"feeAssetId": null,
"timestamp": 1568392903236,
"version": 1,
"sender": "3MzbJGw4eewZaFchoewZQv9mMH25AoNgMb3",
"senderPublicKey": "FTjfgevHkmD3kcdRadPPNCxfsWvfecQ1cLQTtCPyN3BZ",
"proofs": [
"CDdqZudJXsDoxSLkub5oTVewdkgAiw9DMuuGx8A3qkowiEatjJQjcFPRLQapwTQom59N9t5bXcxSxq48t5E9FFT"
],
"script": "base64:AAIDAAAAAAAAAAoIARIGCgQICAICAAAAAgAAAAAJUlNBS2V5NTEyCQACWwAAAAECAAAAh2Jhc2U2NDpNRnd3RFFZSktvWklodmNOQVFFQkJRQURTd0F3U0FKQkFKUmRlYnA1R1hIYWdlejdrWisrZ05JdDBmTWU3V0d2Z3NrQkpBY29EbFFWbkE4Y05oL3NqeFNINjhoblhFVlRlMTdJbHNWcUxqSFlXMkpKVVpraUoxVUNBd0VBQVE9PQAAAAAKUlNBS2V5MjA0OAkAAlsAAAABAgAAAY9iYXNlNjQ6TUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFsZW1yOTVKMWpaVXM3Y0ptcm1tbE40em83WVZzQkp6SWVKZGs4TERGR2hVS1NJNnlmczIwWnlKZTIxKzZHSndObktVVTFVeW9jMTd3U1dNS2tyWjBNTXZZRStaNUFpaWp2Qks0c1NKM0lnR2pkVTgvTmhJOENCRHUwRit4Uk05cTNUQjNMTGJEeTVzQmR1ZFlmSGZzVU9jK01UdkFENjluMjdkYjJSaDgreVpRTXR1Ymt1VFFOcDg5c3BoSFFhTEd5UUZhTmxLL05hM2xGeDZvbXF6YWExZ2pvcGxVcjZydllLZ2ZBSUNVQjN6Vm1KU2hpRWk3dzdSMGhXbE5SRDNxY1pqQ1VPTlNwRm80V2J6a25HT2F6dzg0QitJTUlGbklwWFd6UUw4Ulgwdk5jZnNCdkxEZk02azJaYWNxd3lNS2FMTHFpZ2RCaUdkSjdXKzBsT1N0T1FJREFRQUIAAAABAAAAAWkBAAAACWNoZWNrU2lnbgAAAAQAAAAGbnVtYmVyAAAABFR4SWQAAAAJU2lnbmF0dXJlAAAACVB1YmxpY0tleQQAAAAEcG1udAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAAxhc3NldElkY2hlY2sJAQAAAAlpc0RlZmluZWQAAAABCAUAAAAEcG1udAAAAAdhc3NldElkBAAAAAFhCQAB+AAAAAQFAAAABlNIQTI1NgkAAZsAAAABBQAAAARUeElkBQAAAAlTaWduYXR1cmUFAAAACVJTQUtleTUxMgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAZudW1iZXICAAAABF9QdWIFAAAACVB1YmxpY0tleQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAZudW1iZXICAAAABV9UWElEBQAAAARUeElkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABm51bWJlcgIAAAAKX1NpZ25hdHVyZQUAAAAJU2lnbmF0dXJlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABm51bWJlcgIAAAAHX1ZlcmlmeQUAAAABYQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAaz0T/o",
"chainId": 84,
"height": 674674,
"spentComplexity": 0
}
View: original | compacted
Prev: 33Y9AaQ37qbyYsaGMLaLCF2VddeR5pxmCj3QwDwLNgis
Next: J1GRAjN72CcSKj9Bb1Xxti7jk6Frid8bi6HsrXri6aJ9
Diff:
Old | New | | Differences |
---|
9 | 9 | | func checkSign (number,TxId,Signature,PublicKey) = { |
---|
10 | 10 | | let pmnt = extract(i.payment) |
---|
11 | 11 | | let assetIdcheck = isDefined(pmnt.assetId) |
---|
12 | | - | let assetId = match pmnt.assetId { |
---|
13 | | - | case a: ByteVector => |
---|
14 | | - | a |
---|
15 | | - | case _ => |
---|
16 | | - | "null" |
---|
17 | | - | } |
---|
18 | 12 | | let a = rsaVerify(SHA256, toBytes(TxId), Signature, RSAKey512) |
---|
19 | | - | WriteSet([DataEntry((number + "_Pub"), PublicKey), DataEntry((number + "_TXID"), TxId), DataEntry((number + "_Signature"), Signature), DataEntry((number + "_Verify"), a), DataEntry((number + "_assetIdDefined"), assetIdcheck), DataEntry((number + "_assetIdDefined"), assetId)]) |
---|
| 13 | + | WriteSet([DataEntry((number + "_Pub"), PublicKey), DataEntry((number + "_TXID"), TxId), DataEntry((number + "_Signature"), Signature), DataEntry((number + "_Verify"), a)]) |
---|
20 | 14 | | } |
---|
21 | 15 | | |
---|
22 | 16 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let RSAKey512 = fromBase64String("base64:MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJRdebp5GXHagez7kZ++gNIt0fMe7WGvgskBJAcoDlQVnA8cNh/sjxSH68hnXEVTe17IlsVqLjHYW2JJUZkiJ1UCAwEAAQ==") |
---|
5 | 5 | | |
---|
6 | 6 | | let RSAKey2048 = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlemr95J1jZUs7cJmrmmlN4zo7YVsBJzIeJdk8LDFGhUKSI6yfs20ZyJe21+6GJwNnKUU1Uyoc17wSWMKkrZ0MMvYE+Z5AiijvBK4sSJ3IgGjdU8/NhI8CBDu0F+xRM9q3TB3LLbDy5sBdudYfHfsUOc+MTvAD69n27db2Rh8+yZQMtubkuTQNp89sphHQaLGyQFaNlK/Na3lFx6omqzaa1gjoplUr6rvYKgfAICUB3zVmJShiEi7w7R0hWlNRD3qcZjCUONSpFo4WbzknGOazw84B+IMIFnIpXWzQL8RX0vNcfsBvLDfM6k2ZacqwyMKaLLqigdBiGdJ7W+0lOStOQIDAQAB") |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(i) |
---|
9 | 9 | | func checkSign (number,TxId,Signature,PublicKey) = { |
---|
10 | 10 | | let pmnt = extract(i.payment) |
---|
11 | 11 | | let assetIdcheck = isDefined(pmnt.assetId) |
---|
12 | | - | let assetId = match pmnt.assetId { |
---|
13 | | - | case a: ByteVector => |
---|
14 | | - | a |
---|
15 | | - | case _ => |
---|
16 | | - | "null" |
---|
17 | | - | } |
---|
18 | 12 | | let a = rsaVerify(SHA256, toBytes(TxId), Signature, RSAKey512) |
---|
19 | | - | WriteSet([DataEntry((number + "_Pub"), PublicKey), DataEntry((number + "_TXID"), TxId), DataEntry((number + "_Signature"), Signature), DataEntry((number + "_Verify"), a), DataEntry((number + "_assetIdDefined"), assetIdcheck), DataEntry((number + "_assetIdDefined"), assetId)]) |
---|
| 13 | + | WriteSet([DataEntry((number + "_Pub"), PublicKey), DataEntry((number + "_TXID"), TxId), DataEntry((number + "_Signature"), Signature), DataEntry((number + "_Verify"), a)]) |
---|
20 | 14 | | } |
---|
21 | 15 | | |
---|
22 | 16 | | |
---|
23 | 17 | | @Verifier(tx) |
---|
24 | 18 | | func verify () = true |
---|
25 | 19 | | |
---|