feat: add ed25519 signature verify program

Solang requires a method for verify ed25519 signatures. Add a new
builtin program at address Ed25519SigVerify111111111111111111111111111
which takes any number of ed25519 signature, public key, and message.
If any of the signatures fails to verify, an error is returned.

The changes for the web3.js package will go into another commit, since
the tests test against a released solana node. Adding web3.js ed25519
testing will break CI.

(cherry picked from commit b491354e51)

Conflicts:
	Cargo.lock
	Cargo.toml
	programs/bpf/Cargo.lock
	runtime/Cargo.toml
	sdk/src/feature_set.rs
	sdk/src/transaction.rs
	sdk/src/transaction/sanitized.rs
This commit is contained in:
Sean Young
2021-09-03 22:35:38 +01:00
parent c8f6a0817b
commit 0a6bb84aec
16 changed files with 523 additions and 12 deletions

View File

@@ -3142,6 +3142,13 @@ dependencies = [
"winapi 0.3.9",
]
[[package]]
name = "solana-ed25519-program"
version = "1.8.1"
dependencies = [
"solana-sdk",
]
[[package]]
name = "solana-faucet"
version = "1.8.1"
@@ -3439,6 +3446,7 @@ dependencies = [
"serde_derive",
"solana-compute-budget-program",
"solana-config-program",
"solana-ed25519-program",
"solana-frozen-abi 1.8.1",
"solana-frozen-abi-macro 1.8.1",
"solana-logger 1.8.1",
@@ -3467,6 +3475,7 @@ dependencies = [
"borsh-derive",
"bs58 0.4.0",
"bv",
"bytemuck",
"byteorder 1.3.4",
"chrono",
"derivation-path",