# Linux
wget $(curl -s https://api.github.com/repos/bnb-chain/bsc/releases/latest |grep browser_ |grep geth_linux |cut -d\" -f4)
mv geth_linux geth
chmod -v u+x geth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use libsecp256k1::curve::Scalar; | |
fn main() { | |
let limbs: [u32; 8] = [23, 4, 55, 6, 7, 2, 4, 1]; | |
let (mut b, ptr) = { | |
let a = Scalar(limbs); | |
println!("Creation Address: {:?}", a.0.as_ptr()); | |
(a, a.0.as_ptr()) // a gets copied and returned | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use lambdaworks_math::unsigned_integer::element::UnsignedInteger; | |
fn main() { | |
let (mut a, ptr) = { | |
let b = UnsignedInteger::<4>::from_limbs([1234, 234, 567, 987]); | |
println!("Creation Address: {:?}", b.limbs.as_ptr()); | |
(b, b.limbs.as_ptr()) | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use cheetah::Scalar; | |
let (mut a, ptr) = { | |
let b = Scalar::new([12, 34, 56, 78]); | |
println!("Creation Address: {:?}", b.0.as_ptr()); | |
(b, b.0.as_ptr()) | |
}; | |
println!("Value before dropping: {:?}", a.0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use curve25519_dalek::Scalar; | |
let (mut a, ptr) = { | |
let b = Scalar::from_bytes_mod_order([ | |
45, 34, 23, 78, 7, 12, 65, 4, 34, 12, 12, 45, 65, 45, 4, 54, 33, 26, 65, 44, 65, 44, | |
67, 86, 43, 66, 8, 56, 42, 67, 78, 94, | |
]); | |
println!("Creation Address: {:?}", b.bytes.as_ptr()); | |
(b, b.bytes.as_ptr()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use ark_ff::BigInt; | |
let (mut a, ptr) = { | |
let b = BigInt::<4>::new([12, 34, 56, 78]); | |
println!("Creation Address: {:?}", b.0.as_ptr()); | |
(b, b.0.as_ptr()) | |
}; | |
println!("Value before dropping: {:?}", a); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[derive(Clone, Debug)] // Cloneable | |
pub struct SecretKey { | |
scalar: [u64; 2] // Copyable | |
} | |
impl Drop for SecretKey { | |
fn drop(&mut self) { | |
unsafe { | |
core::ptr::write_volatile(&mut self.scalar, [0u64; 2]); | |
core::sync::atomic::compiler_fence(core::sync::atomic::Ordering::SeqCst); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hey, I'm RajeshRk18-87425610 and I have contributed to the Semaphore V4 Ceremony. | |
The following are my contribution signatures: | |
Circuit # 1 (semaphorev4-1) | |
Contributor # 155 | |
Contribution Hash: | |
441cb73b 31ce8bb4 31ce87fd b3ce38e2 | |
5310378c a56e278b c0d8d173 534dca71 | |
9104d1fc 8e43c81b ca3b086c ae9fce2d | |
1e1a8134 5765bbe0 07c57ce5 2033a169 |