Skip to content

Commit

Permalink
feat: expose sign fn for main key
Browse files Browse the repository at this point in the history
  • Loading branch information
oetyng committed Apr 12, 2023
1 parent 2f9da7a commit a94a0ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dbc_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ impl MainKey {
}
}

/// Sign a message with the main key.
pub fn sign(&self, msg: &[u8]) -> blsttc::Signature {
self.0.sign(msg)
}

/// When someone wants to send tokens to the PublicAddress of this MainKey,
/// they generate the id of the Dbc - the DbcId - that shall hold the tokens.
/// The created Dbc contains the encrypted derivation index, that is decrypted using
Expand Down

0 comments on commit a94a0ef

Please sign in to comment.