Sam Kim
73c06d9e33
Rename ElGamalPubkey::gen_decrypt_handle method to ElGamalPubkey::decrypt_handle
2022-01-05 08:51:18 -08:00
Michael Vines
20c6001836
derive Debug for pods for BPF target as well
2022-01-05 08:51:18 -08:00
Sam Kim
c150b4b197
Replace to_elgamal_ciphertext with From trait for ElGamalCiphertext
2022-01-05 08:51:18 -08:00
Sam Kim
a40e7fc59b
Rename Pedersen related structs and methods for consistency
2022-01-05 08:51:18 -08:00
Michael Vines
17cda46531
Merge transfer instructions
2022-01-05 08:51:18 -08:00
Michael Vines
42f7c0c7f6
Update tests
2022-01-05 08:51:18 -08:00
Michael Vines
20bce10204
add clippy
2022-01-05 08:51:18 -08:00
Sam Kim
9b73e351aa
minor name change
2022-01-05 08:51:18 -08:00
Sam Kim
d6a808f41a
simplify get_ciphertext methods
2022-01-05 08:51:18 -08:00
Sam Kim
93f2323e52
add ciphertext extraction methods for TransferData
2022-01-05 08:51:18 -08:00
Sam Kim
75896958b6
rename to_elgamal_ctxt to to_elgamal_ciphertext
2022-01-05 08:51:18 -08:00
Michael Vines
a622ee4b8d
Rename ElGamal::keygen to ElGamal::new
2022-01-05 08:51:18 -08:00
Michael Vines
94a96670e8
Update lib.rs
2022-01-05 08:51:18 -08:00
Michael Vines
8bb6f0dc6f
Rename ElGamalSK to ElGamalSecretKey
2022-01-05 08:51:18 -08:00
Michael Vines
5445e13828
Rename dlog.rs to discrete_log.rs
2022-01-05 08:51:18 -08:00
Michael Vines
23d3b540a1
Avoid explicit curve25519_dalek dependency in demo/
2022-01-05 08:51:18 -08:00
Sam Kim
1ef3a621a8
add decryption in demo
2022-01-05 08:51:18 -08:00
Sam Kim
d20d03cd7f
clean up ElGamal decryption
2022-01-05 08:51:18 -08:00
Michael Vines
409b55ad81
add some comments
2022-01-05 08:51:18 -08:00
Michael Vines
667e72144e
rename encode.rs to dlog.rs
2022-01-05 08:51:18 -08:00
Michael Vines
2f138ecb96
Fix tests
2022-01-05 08:51:18 -08:00
Michael Vines
48047b55ba
clippy
2022-01-05 08:51:18 -08:00
Michael Vines
f227504ea7
Add sol_zk_token_elgamal syscall declarations
2022-01-05 08:51:18 -08:00
Michael Vines
78799640ea
Rename ElGamalCT to ElGamalCiphertext, ElGamalPK to ElGamalPubkey
2022-01-05 08:51:18 -08:00
Michael Vines
f3e7e62813
Refactor sdk/src/pod.rs
2022-01-05 08:51:18 -08:00
Michael Vines
d01d425e4b
Rename crypto crate to sdk
2022-01-05 08:51:18 -08:00
Michael Vines
7da620f0b4
Merge sdk/ back into crypto/
2022-01-05 08:51:18 -08:00
Michael Vines
88b71c0732
Add demo cli
2022-01-05 08:51:18 -08:00
Michael Vines
df521bbfc8
Adjust crate names
2022-01-05 08:51:18 -08:00
Michael Vines
03a3a501f3
Groom Cargo.tomls
2022-01-05 08:51:18 -08:00
Michael Vines
ae5d254e73
Move solana-specific parts of crypto/ into sdk/
2022-01-05 08:51:18 -08:00
Justin Starry
0e1afcbb26
Split up local cluster tests into separate CI steps ( #22295 )
...
* Split up local cluster tests into separate CI steps
* Update buildkite-pipeline.sh
2022-01-05 14:44:15 +00:00
Yueh-Hsuan Chiang
44d61465f1
(Ledger store benchmark - 3/N) Add comments about the benchmark and its arguments ( #22160 )
...
* Avoid shred generation in ledger_cleanup.rs
* Update comment for test_ledger_cleanup_compaction to include benchmark information.
2022-01-04 23:35:55 -10:00
Alexander Meißner
9f63493789
Refactor: Remove KeyedAccounts (2) ( #22274 )
...
* Adds InstructionContext::get_signers().
Improves error messages when modifying borrowed accounts.
* Removes keyed_accounts from InvokeContext tests.
* Removes keyed_accounts from message_processor.rs
* Removes keyed_accounts from bank.rs
* Removes keyed_accounts from bpf serialization.
2022-01-05 09:39:37 +01:00
Nikita
c1995c647b
fix(rpc): recreate dead and uncleaned subscriptions ( #22281 )
2022-01-05 00:15:21 -07:00
sethgirvan
5bb376f304
Fix CONTRIBUTING wording ( #22291 )
...
Co-authored-by: Seth Girvan <seth@ahoy.fund>
2022-01-05 06:27:10 +00:00
Justin Starry
45458e7139
Refactor: Improve type safety and readability of transaction execution ( #22215 )
...
* Refactor Bank::load_and_execute_transactions
* Refactor: improve type safety of TransactionExecutionResult
* Add enum for extra type safety in execution results
* feedback
2022-01-05 10:15:15 +08:00
Yueh-Hsuan Chiang
e201b41341
Avoid shred generation in ledger_cleanup.rs ( #22091 )
2022-01-04 15:29:43 -10:00
joeaba
af7a2e3daa
Update metrics subdomain
2022-01-04 20:14:41 -05:00
Justin Starry
9725f2e319
docs: Fix typo in proposal ( #22282 )
2022-01-04 22:11:51 +00:00
Michael Vines
212e6ea4a4
Remove obsolete M1 setup information
2022-01-04 21:14:13 +00:00
behzad nouri
379feecae5
patches bug in recv_mmsg when npkts != nrecv
...
If recv_mmsg receives 2 packets where the first one is filtered out,
then it returns npkts == 1:
https://github.com/solana-labs/solana/blob/01a096adc/streamer/src/recvmmsg.rs#L104-L115
But then streamer::packet::recv_from will erroneously keep the 1st
packet and drop the 2nd one:
https://github.com/solana-labs/solana/blob/01a096adc/streamer/src/packet.rs#L34-L49
To avoid this bug, this commit updates recv_mmsg to always return total
number of received packets. If socket address cannot be correctly
obtained, it is left as the default value which is UNSPECIFIED:
https://github.com/solana-labs/solana/blob/01a096adc/sdk/src/packet.rs#L145
2022-01-04 21:06:59 +00:00
behzad nouri
4b24499916
removes total-size from return value of recv_mmsg
2022-01-04 21:06:59 +00:00
dependabot[bot]
6c65734330
Bump hidapi from 1.3.0 to 1.3.2 ( #22265 )
...
* Bump hidapi from 1.3.0 to 1.3.2
Bumps [hidapi](https://github.com/ruabmbua/hidapi-rs ) from 1.3.0 to 1.3.2.
- [Release notes](https://github.com/ruabmbua/hidapi-rs/releases )
- [Commits](https://github.com/ruabmbua/hidapi-rs/commits )
---
updated-dependencies:
- dependency-name: hidapi
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* [auto-commit] Update all Cargo lock files
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2022-01-04 10:47:58 -07:00
Brooks Prumo
1460f00e0f
Consume from AccountsDataMeter ( #21994 )
2022-01-04 10:00:21 -06:00
behzad nouri
01a096adc8
adds bitflags to Packet.Meta
...
Instead of a separate bool type for each flag, all the flags can be
encoded in a type-safe bitflags encoded in a single u8:
https://github.com/solana-labs/solana/blob/d6ec103be/sdk/src/packet.rs#L19-L31
2022-01-04 13:53:40 +00:00
behzad nouri
73a7741c49
uses std::net::IpAddr type for Packet.Meta.addr
2022-01-04 13:53:40 +00:00
behzad nouri
aa9f7ed7e8
removes seed and slot fields from Packet.Meta
...
507367e6ac
updated window-service to send shreds (as opposed to packets) to
retransmit-stage and so seed and slot fields in Packet.Meta are unused:
https://github.com/solana-labs/solana/blob/d6ec103be/sdk/src/packet.rs#L27-L28
2022-01-04 13:53:40 +00:00
sakridge
2486e21ffe
Lower vote-only-mode to 400 ( #22210 )
2022-01-04 12:49:14 +01:00
Justin Starry
ca5591bfa0
Updates to the address lookup table proposal ( #22269 )
2022-01-04 11:35:20 +00:00