clean up
This commit is contained in:
@@ -396,6 +396,12 @@ pub fn bundle_naddr(link_signer: &PublicKey) -> Result<String, InviteError> {
|
||||
.map_err(|_| InviteError::BadLink("invalid naddr"))
|
||||
}
|
||||
|
||||
pub fn mint_token() -> Result<[u8; TOKEN_LEN], InviteError> {
|
||||
let mut token = [0u8; TOKEN_LEN];
|
||||
crate::fill_random(&mut token).map_err(crypto_error)?;
|
||||
Ok(token)
|
||||
}
|
||||
|
||||
pub fn build_invite_url(
|
||||
base: &str,
|
||||
link_signer: &PublicKey,
|
||||
|
||||
Reference in New Issue
Block a user