Trait near_crypto::Signer [−][src]
Generic signer trait, that can sign with some subset of supported curves.
Required methods
fn public_key(&self) -> PublicKey
[src]
fn sign(&self, data: &[u8]) -> Signature
[src]
fn compute_vrf_with_proof(&self, _data: &[u8]) -> (Value, Proof)
[src]
Provided methods
fn verify(&self, data: &[u8], signature: &Signature) -> bool
[src]
fn write_to_file(&self, _path: &Path)
[src]
Used by test infrastructure, only implement if make sense for testing otherwise raise unimplemented
.