Verify a ed25519-dalek signature via this library: https://github.com/dalek-cryptography/ed25519-dalek
I copied one of the test cases: https://github.com/dalek-cryptography/ed25519-dalek/blob/master/tests/ed25519.rs#L83-L114
| import { LiquidityPoolKeysV4, MARKET_STATE_LAYOUT_V3, Market, TOKEN_PROGRAM_ID } from "@raydium-io/raydium-sdk"; | |
| import { Connection, Logs, ParsedInnerInstruction, ParsedInstruction, ParsedTransactionWithMeta, PartiallyDecodedInstruction, PublicKey } from "@solana/web3.js"; | |
| const RPC_ENDPOINT = 'https://api.mainnet-beta.solana.com'; | |
| const RAYDIUM_POOL_V4_PROGRAM_ID = '675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8'; | |
| const SERUM_OPENBOOK_PROGRAM_ID = 'srmqPvymJeFKQ4zGQed1GFppgkRHL9kaELCbyksJtPX'; | |
| const SOL_MINT = 'So11111111111111111111111111111111111111112'; | |
| const SOL_DECIMALS = 9; | |
| const connection = new Connection(RPC_ENDPOINT); |
| { | |
| "chainify": "https://github.com/liquality/chainify", | |
| "solana-chat-app": "https://github.com/jsoneaday/solana-chat-app", | |
| "wallet-adapter": "https://github.com/solana-labs/wallet-adapter", | |
| "audius-protocol": "https://github.com/AudiusProject/audius-protocol", | |
| "raydium-ui": "https://github.com/raydium-io/raydium-ui", | |
| "espresso-cash-public": "https://github.com/espresso-cash/espresso-cash-public", | |
| "backpack": "https://github.com/coral-xyz/backpack", | |
| "projects": "https://github.com/solidproof/projects", | |
| "protocol-v1": "https://github.com/drift-labs/protocol-v1", |
Verify a ed25519-dalek signature via this library: https://github.com/dalek-cryptography/ed25519-dalek
I copied one of the test cases: https://github.com/dalek-cryptography/ed25519-dalek/blob/master/tests/ed25519.rs#L83-L114