Skip to content

Commit

Permalink
Typo fix in nfts.md (#1558)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorperic17 authored Oct 29, 2023
1 parent 9f2f35b commit 8f92053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/1.concepts/web3/nfts.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ In case of in-application storage, data can be modified by a server without any

If we want our server to serve as an oracle for our smart contract, the easiest way is to cryptographically sign server’s data and verify it on the contract’s side (server’s public key that was used for signing should be stored in a contract in this case).

In order to prevent replay attacks, signed data should include a timestamp, which should also be verified. However, there’s on trick to this - smart contracts can’t access current time, since it would make them non-deterministic. Instead, transaction signature time can be used - it can be accessed using `env::block_timestamp()` function.
In order to prevent replay attacks, signed data should include a timestamp, which should also be verified. However, there’s one trick to this - smart contracts can’t access current time, since it would make them non-deterministic. Instead, transaction signature time can be used - it can be accessed using `env::block_timestamp()` function.



Expand Down

0 comments on commit 8f92053

Please sign in to comment.