Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejka committed May 13, 2024
1 parent 4bb12a7 commit e1cb565
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions onchain/src/bech32.cairo
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
//! bech32 encoding implementation
//! Spec: https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki
//! Sample implementations:
//! -
//! https://github.com/sipa/bech32/blob/7a7d7ab158db7078a333384e0e918c90dbc42917/ref/javascript/bech32.js#L86
//! -
//! https://github.com/paulmillr/scure-base/blob/66cd4909237abbf9d7c2064ea1b88340aa211155/index.ts#L479
//! https://github.com/sipa/bech32/blob/master/ref/javascript/bech32.js#L86
//! https://github.com/paulmillr/scure-base/blob/main/index.ts#L479

pub fn encode(hrp: ByteArray, data: ByteArray) -> ByteArray {
// TODO: provide full implementation of bech32 encoding
Expand Down
3 changes: 1 addition & 2 deletions onchain/src/nostr_profile.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ pub struct NostrProfile {
///
/// Spec: https://github.com/nostr-protocol/nips/blob/master/19.md
/// Sample implementation:
///
/// https://github.com/nbd-wtf/nostr-tools/blob/f4f9bece6edc1991e804868c84e75ef47146ad55/nip19.ts#L182
/// https://github.com/nbd-wtf/nostr-tools/blob/master/nip19.ts#L182
///
/// # Parameters:
/// - `n_profile` - profile to be encoded
Expand Down

0 comments on commit e1cb565

Please sign in to comment.