Peter Piekarczyk
759dc80fb6
chore: improve default PublicKey docs ( #28372 )
...
* docs: replace zeros comments with ones
* Update comment around docs
2022-10-12 20:04:22 -06:00
Ian Macalinao
98dfc2b7d1
chore: remove Buffer from PublicKeyInitData ( #27888 )
2022-09-17 17:16:45 -07:00
Justin Starry
3374f41201
feat: implement message v0 compilation ( #27524 )
...
* feat: add PublicKey.unique method for tests
* feat: add MessageAccountKeys class
* feat: add CompiledKeys class for message compilation
* feat: implement message compilation using CompiledKeys
2022-09-06 23:43:22 -04:00
Steven Luscher
60f3dc5f72
fix: replace tweetnacl impl
...
* Install `@noble/ed25519` and create a shim
* Replace `tweetnacl` with `@noble/ed25519` in `Account` class
* Replace `tweetnacl` with `@noble/ed25519` in `Keypair` class
* Replace `tweetnacl` with `@noble/ed25519` in `PublicKey` class
* Replace `tweetnacl` with `@noble/ed25519` in `Ed25519Program` class
* Replace `tweetnacl` with `@noble/ed25519` in `Transaction` class
* Replace `tweetnacl` with `@noble/ed25519` in versioned `Transaction` class
* Remove `tweetnacl` from project
* Damnit, typedoc.
2022-08-28 12:11:34 -07:00
Steven Luscher
1a836ab4af
[web3.js] Replace sha256 and secp256k1 impls ( #27390 )
...
* fix: replace `@ethersproject/sha2` with `@noble/hashes/sha256`
* fix: replace `secp256k1` with `@noble/secp256k1`
2022-08-25 13:34:11 -07:00
Justin Starry
a97346aec7
chore: add constant for pubkey byte length ( #27134 )
2022-08-14 16:19:06 +00:00
Justin Starry
8e30dbbbf2
chore: restructure utils code
2022-08-12 17:11:51 +01:00
Kartik Soneji
758fcd383d
feat: allow PublicKey.isOnCurve to accept PublicKeyInitData ( #24602 )
2022-04-25 20:42:41 +08:00
Yang Li
a6742b5838
fix: remove async for createProgramAddress and findProgramAddress (#2… ( #23185 )
...
* fix: remove async for createProgramAddress and findProgramAddress (#23184 )
make sync
* test: add test to ensure backwards compatibility
2022-04-18 16:17:00 +02:00
Victor Pontis
c0c3d7c1f2
fix: add publickey toJSON ( #22004 )
2021-12-20 15:16:32 -06:00
Johanna Johansson
b825390752
fix: replace ethers dependency with @ethersproject/sha2 ( #20920 )
2021-10-25 08:51:24 -07:00
DR497
4f01b3fd31
fix: use ethers for ios compatibility instead crypto-hash ( #20822 )
2021-10-22 01:27:50 +00:00
Justin Starry
1942d294e9
chore(web3): use github actions ( #19816 )
...
* chore: use github actions
* chore: npm audit
* chore: fix prettier warn
* chore: fix doc errors
* chore: add puppeteer
2021-09-13 16:37:18 -05:00
Justin Starry
4fb1c9da26
fix: update buffer-layout to fix downstream bundler issues ( #18529 )
...
* fix: update buffer-layout to fix downstream bundler issues
* chore: run check on generated type declaration
2021-07-08 20:01:11 -05:00
GentlemansKiller
69ad13b077
chore: tweak docs for account creation methods ( #18507 )
...
* doc tweaks" PublicKey.createWithSeed() and system-program's CreateAccountWithSeedParams obj
* Update web3.js/src/system-program.ts
* Update web3.js/src/system-program.ts
* Update web3.js/src/system-program.ts
Co-authored-by: GentlemansKiller <gk_gaming_shit@protonmail.ch>
Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
2021-07-07 21:23:36 -05:00
dependabot[bot]
fda8cb176a
chore: bump prettier from 2.2.1 to 2.3.0 in /web3.js ( #17143 )
...
* chore: bump prettier from 2.2.1 to 2.3.0 in /web3.js
Bumps [prettier](https://github.com/prettier/prettier ) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.0 )
Signed-off-by: dependabot[bot] <support@github.com>
* chore: bump
* chore: format
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Justin Starry <justin@solana.com>
2021-05-25 03:53:16 +00:00
Jon Cinque
00e198d169
feat: add borsh utilities and public key support ( #17239 )
...
* feat: add borsh utilities and public key support
* fix: make bn internal for flow
* fix: add Buffer import in borsh file
2021-05-18 19:33:06 +02:00
Christian Machacek
e511c442e6
fix: improve findProgramAddress error when MAX_SEED_LENGTH is exceeded ( #17151 )
2021-05-10 15:55:51 -07:00
Trent Nelson
a2fbb9cfef
fix: optional stake lockup field parameters ( #16943 )
...
* fix: optional stake lockup field parameters
* chore: update web3.js/src/stake-program.ts
Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
* chore: prettier
Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
Co-authored-by: Justin Starry <justin@solana.com>
2021-04-29 22:04:33 +08:00
Trent Nelson
aee30e304d
chore: export `is_on_curve()`
2021-04-28 06:37:25 +00:00
Justin Starry
a622198235
feat: add PublicKey.toBytes and fix buffer incompatibility
2021-03-29 14:32:35 +08:00
Justin Starry
f912c63b22
chore: migrate to typescript
2021-03-17 10:26:00 +08:00