Skip to content

Instantly share code, notes, and snippets.

View Redstoneguy129's full-sized avatar
🎯
Focusing

Cameron Whyte Redstoneguy129

🎯
Focusing
View GitHub Profile
use std::str::FromStr as _;
use solana_client::{
client_error::{ClientError, ClientErrorKind},
rpc_client::GetConfirmedSignaturesForAddress2Config,
rpc_request::RpcRequest,
};
use solana_program::pubkey::Pubkey;
use solana_sdk::commitment_config::CommitmentConfig;
use solext::rpc::{Client as _, GetAllSignaturesForAddress as _, GetMarkerSignature as _};

Seed Cracking

Part 1: A little explanation about Java Random

  • java.util.Random, An instance of this class is used to generate a stream of pseudorandom numbers. The class uses a 48-bit seed, which is modified using a linear congruential formula. (See Donald Knuth, The Art of Computer Programming, Volume 2, Section 3.2.1.)

  • This class has 6 nifty functions:

    • nextBoolean()
    • nextDouble()
  • nextFloat()