Skip to content

Commit 3b9920b

Browse files
authored
fix: update README — broken link, type casing, outdated example (#46)
- Remove broken changelog link (CHANGELOG.md doesn't exist in repo) - Fix docs URL: docs.fhenix.io → cofhe-docs.fhenix.zone - Fix type casing: `inEuint8` → `InEuint8` (matches actual FHE.sol source) - Fix grammar: "smart contract" → "smart contracts", "constructions" → "construction" - Update example: remove deprecated seal(publicKey) pattern, add FHE.allowThis() - Fix extra whitespace in function signature Closes #45
1 parent b2cc2ea commit 3b9920b

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
[license]: https://opensource.org/licenses/MIT
66
[license-badge]: https://img.shields.io/badge/License-MIT-blue.svg
77

8-
Solidity contracts for working with FHE smart contract on CoFHE.
8+
Solidity contracts for working with FHE smart contracts on CoFHE.
99

10-
Need help getting started? Check out the [fhenix documentation](https://docs.fhenix.io)!
10+
Need help getting started? Check out the [Fhenix documentation](https://cofhe-docs.fhenix.zone)!
1111

12-
These contracts are still under heavy constructions and will be changing frequently. Consider binding your contracts to a specific version, and keep an eye on the [changelog](https://github.com/FhenixProtocol/cofhe-contracts/CHANGELOG.md)
12+
These contracts are still under heavy construction and will be changing frequently. Consider binding your contracts to a specific version
1313

1414
## Install
1515

@@ -30,19 +30,17 @@ import "@fhenixprotocol/cofhe-contracts/FHE.sol";
3030
```solidity
3131
pragma solidity ^0.8.20;
3232
33-
import {FHE, euint8, inEuint8} from "@fhenixprotocol/cofhe-contracts/FHE.sol";
33+
import {FHE, euint8, InEuint8} from "@fhenixprotocol/cofhe-contracts/FHE.sol";
3434
3535
contract Example {
3636
3737
euint8 _output;
3838
39-
function setOutput(inEuint8 calldata _encryptedNumber) public {
39+
function setOutput(InEuint8 calldata _encryptedNumber) public {
4040
_output = FHE.asEuint8(_encryptedNumber);
41+
FHE.allowThis(_output);
4142
}
4243
43-
function getOutputEncrypted(bytes32 publicKey) public view returns (bytes memory) {
44-
return _output.seal(publicKey);
45-
}
4644
}
4745
```
4846

0 commit comments

Comments
 (0)