feat: modify the vk derivator
This commit is contained in:
parent
b99a633316
commit
74042e2d6b
1 changed files with 2 additions and 4 deletions
|
@ -99,7 +99,7 @@ deriveUfvk ::
|
|||
-> OrchardSpendingKey
|
||||
-> SaplingSpendingKey
|
||||
-> TransparentSpendingKey
|
||||
-> IO T.Text
|
||||
-> IO ValidVk
|
||||
deriveUfvk net okey skey tkey = do
|
||||
tSec <- deriveFullTransparentNode tkey
|
||||
let oSec = deriveOrchardFvk okey
|
||||
|
@ -111,7 +111,6 @@ deriveUfvk net okey skey tkey = do
|
|||
Nothing -> fail "Unable to derive Sapling viewing key"
|
||||
Just sSec' ->
|
||||
return $
|
||||
encodeVK $
|
||||
FullVk $
|
||||
UnifiedFullViewingKey
|
||||
(case net of
|
||||
|
@ -127,7 +126,7 @@ deriveUivk ::
|
|||
-> OrchardSpendingKey
|
||||
-> SaplingSpendingKey
|
||||
-> TransparentSpendingKey
|
||||
-> IO T.Text
|
||||
-> IO ValidVk
|
||||
deriveUivk net okey skey tkey = do
|
||||
tSec <- deriveIncomingTransparentNode tkey
|
||||
let oSec = deriveOrchardIvk okey
|
||||
|
@ -139,7 +138,6 @@ deriveUivk net okey skey tkey = do
|
|||
Nothing -> fail "Unable to derive Sapling viewing key"
|
||||
Just sSec' ->
|
||||
return $
|
||||
encodeVK $
|
||||
IncomingVk $
|
||||
UnifiedIncomingViewingKey
|
||||
(case net of
|
||||
|
|
Loading…
Add table
Reference in a new issue