Skip to content

Commit

Permalink
larger message
Browse files Browse the repository at this point in the history
  • Loading branch information
Trivo25 committed Jul 30, 2024
1 parent 499fdc9 commit 78a12d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/examples/encryptionv2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
initializeBindings,
Encryption,
Encoding,
Provable,
} from 'o1js';

await initializeBindings();
Expand All @@ -14,7 +13,7 @@ class Bytes256 extends Bytes(256) {}
const priv = PrivateKey.random();
const pub = priv.toPublicKey();

const plainMsg = 'Hello world';
const plainMsg = 'The quick brown fox jumped over the angry dog.';

console.log('en/decryption of field elements');
const cipher2 = Encryption.encryptV2(Encoding.stringToFields(plainMsg), pub);
Expand Down

0 comments on commit 78a12d6

Please sign in to comment.