pub struct FileSigner { /* private fields */ }Expand description
A RealmSigner backed by raw key bytes — today’s --key <FILE> path,
kept exactly, as one implementation of the seam.
Implementations§
Source§impl FileSigner
impl FileSigner
Sourcepub fn new(secret_key: &[u8], key_id: &str) -> Result<Self, VerifyError>
pub fn new(secret_key: &[u8], key_id: &str) -> Result<Self, VerifyError>
A signer whose 64-byte secret is checked to carry its own public half
(keys::check_keypair’s probe), so a mismatched pair is refused here
and not after a signature nobody can verify exists.
Sourcepub fn new_unchecked(
secret_key: &[u8],
key_id: &str,
) -> Result<Self, VerifyError>
pub fn new_unchecked( secret_key: &[u8], key_id: &str, ) -> Result<Self, VerifyError>
As FileSigner::new, without the consistency probe: the behaviour of
the pre-seam entry points, which signed with whatever bytes they were
handed. The wrappers keep that so the refactor changes nothing; new
code should use FileSigner::new.
Trait Implementations§
Source§impl DsseSigner for FileSigner
impl DsseSigner for FileSigner
Source§impl RealmSigner for FileSigner
impl RealmSigner for FileSigner
Source§fn public_key(&self) -> Vec<u8> ⓘ
fn public_key(&self) -> Vec<u8> ⓘ
The 32 raw bytes of the ed25519 public key this signer signs as.
Source§fn realm_key_id(&self) -> String
fn realm_key_id(&self) -> String
The key id written into every envelope this signer produces.
Auto Trait Implementations§
impl Forget for FileSigner
impl Freeze for FileSigner
impl Move for FileSigner
impl RefUnwindSafe for FileSigner
impl Send for FileSigner
impl Sync for FileSigner
impl Unpin for FileSigner
impl UnsafeUnpin for FileSigner
impl UnwindSafe for FileSigner
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more