Skip to content

Releases: ainblockchain/ain-js

v1.3.6 Release Note

27 Jul 06:54
da0caca
Compare
Choose a tag to compare

v1.3.4 Release Note

27 Jul 06:54
49ff98a
Compare
Choose a tag to compare

v1.3.2 Release Note

27 Jul 06:53
661ff5a
Compare
Choose a tag to compare

v1.3.1 Release Note

27 Jul 06:53
1718f3f
Compare
Choose a tag to compare

v1.3.0 Release Note

27 Jul 06:52
b26794e
Compare
Choose a tag to compare

v1.2.1 Release Note

27 Jul 06:51
049240b
Compare
Choose a tag to compare

v1.2.0 Release Note

27 Jul 06:51
3dbf112
Compare
Choose a tag to compare

v1.1.9 Release Note

27 Jul 06:47
d238802
Compare
Choose a tag to compare

v1.1.8 Release Note

24 Aug 08:02
3f22740
Compare
Choose a tag to compare

Hello everyone 👋 v1.1.8 is out and has some exciting new features to share!
ain-js now supports basic Homomorphic Encryption functions (e.g. generating new keys, loading existing keys, encrypt & decrypt).
To test it, try the example below:

const ain = new Ain("http://node.ainetwork.ai:8080");
await ain.he.init();
const TEST_DATA = Float64Array.from({ length: ain.he.seal.encoder.slotCount }).map((x, i) => i);
const cipherText = ain.he.encrypt(TEST_DATA);
ain.he.TEST_evaluate_double(cipherText); // cipherText updated
const decrypted = ain.he.decrypt(cipherText.save());