This commit is contained in:
2026-09-29 14:39:48 +07:00
parent 45daeba8a6
commit c6dd2bb1ce
3 changed files with 12 additions and 30 deletions
+6
View File
@@ -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,