github hashgraph/hedera-services v0.28.0
Hedera Services 0.28.0

latest releases: v0.55.0-alpha.1, v0.54.1, v0.54.0...
2 years ago

Pseudorandom numbers 🎲

Services 0.28 gives Hedera devs a new dApp building block in HIP-351 (Pseudorandom Numbers). HAPI has a new UtilService with a prng transaction that generates a record with either a pseudorandom 48-byte seed, or an integer in a requested range.

Smart contracts can also get pseudorandom values by calling a new system contract at address 0x169, using the interface here as in this example. Applications might include NFT mint contracts, lotteries, and so on.

(Please note the HIP-351 text does not yet reflect the name change from RandomGenerate to prng, or the system contract specification. It does explain in detail how prng derives its entropy from the running hash of transaction records generated by the network.)

This release also includes some bug fixes and smaller improvements; notably, it:

  1. Extends ContractCallLocal support to the ERC-20 and ERC-721 functions allowance, getApproved, and isApprovedForAll.
  2. Permits staking to contract accounts.

Contributors

We'd like to thank all the contributors who worked on this release!

Don't miss a new hedera-services release

NewReleases is sending notifications on new releases.