near / near-sdk-rs

Rust library for writing NEAR smart contracts
https://near-sdk.io
Apache License 2.0
452 stars 243 forks source link

Support for BLS12 based signature verification #900

Open sudesh-supraoracles opened 3 years ago

sudesh-supraoracles commented 3 years ago

Hi Team!

Since many protocols are putting BLS12 to use for digital signatures. I want to verify BLS 12 based signature from NEAR smart contract.

Hoping for some positive inputs/response on this.

austinabell commented 2 years ago

So you can use any BLS library that compiles to wasm. iirc I've seen https://crates.io/crates/bls-signatures used to compile to wasm in a completely separate context, but unsure if it works completely here.

If you're looking for some builtin function to the NEAR runtime, that would likely have to go through https://github.com/near/NEPs process to include in the protocol.