-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a31a0b
commit fe0f5ce
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
lib/customer-deposit-wallet-pure/agda/Cardano/Wallet/Address/BIP32.agda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{-# OPTIONS --erasure #-} | ||
|
||
module Cardano.Wallet.Address.BIP32 where | ||
|
||
open import Haskell.Prelude | ||
|
||
open import Haskell.Data.Word.Odd using | ||
( Word31 | ||
) | ||
|
||
{----------------------------------------------------------------------------- | ||
BIP32 Paths | ||
------------------------------------------------------------------------------} | ||
data DerivationType : Set where | ||
Soft : DerivationType | ||
Hardened : DerivationType | ||
|
||
open DerivationType public | ||
|
||
{-# COMPILE AGDA2HS DerivationType #-} | ||
|
||
-- | An absolute BIP32 Path. | ||
data BIP32Path : Set where | ||
Root : BIP32Path | ||
Segment : BIP32Path → DerivationType → Word31 → BIP32Path | ||
|
||
open BIP32Path public | ||
|
||
{-# COMPILE AGDA2HS BIP32Path #-} |
1 change: 1 addition & 0 deletions
1
lib/customer-deposit-wallet-pure/agda/Cardano/Wallet/Deposit/Everything.agda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
lib/customer-deposit-wallet-pure/haskell/Cardano/Wallet/Address/BIP32.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module Cardano.Wallet.Address.BIP32 where | ||
|
||
import Data.Word.Odd (Word31) | ||
|
||
data DerivationType = Soft | ||
| Hardened | ||
|
||
data BIP32Path = Root | ||
| Segment BIP32Path DerivationType Word31 | ||
|