summaryrefslogtreecommitdiff
path: root/kiki.hs
diff options
context:
space:
mode:
Diffstat (limited to 'kiki.hs')
-rw-r--r--kiki.hs13
1 files changed, 0 insertions, 13 deletions
diff --git a/kiki.hs b/kiki.hs
index 3c3fdc9..9c748e5 100644
--- a/kiki.hs
+++ b/kiki.hs
@@ -89,19 +89,6 @@ import KeyRing
89nistp256_id = 0x2a8648ce3d030107 89nistp256_id = 0x2a8648ce3d030107
90secp256k1_id = 0x2b8104000a 90secp256k1_id = 0x2b8104000a
91 91
92isCryptoCoinKey p =
93 and [ isKey p
94 , key_algorithm p == ECDSA
95 , lookup 'c' (key p) == Just (MPI secp256k1_id)
96 ]
97
98getCryptoCoinTag p | isSignaturePacket p = do
99 -- CryptoCoins.secret
100 let sps = hashed_subpackets p ++ unhashed_subpackets p
101 u <- listToMaybe $ mapMaybe usage sps
102 CryptoCoins.lookupNetwork CryptoCoins.network_name u
103getCryptoCoinTag _ = Nothing
104
105warn str = hPutStrLn stderr str 92warn str = hPutStrLn stderr str
106 93
107unprefix c spec = if null (snd p) then swap p else (fst p, tail (snd p)) 94unprefix c spec = if null (snd p) then swap p else (fst p, tail (snd p))