Release v0.3.0

This commit is contained in:
Manu Herrera
2020-11-09 10:05:29 -03:00
parent 4e9aa7a3c5
commit 8107c4478b
1265 changed files with 440488 additions and 107809 deletions

32
vendor/github.com/muun/libwallet/emergency_kit.go generated vendored Normal file
View File

@@ -0,0 +1,32 @@
package libwallet
import (
"github.com/muun/libwallet/emergencykit"
)
// EKInput input struct to fill the PDF
type EKInput struct {
FirstEncryptedKey string
SecondEncryptedKey string
}
// EKOutput with the html as string and the verification code
type EKOutput struct {
HTML string
VerificationCode string
}
// GenerateEmergencyKitHTML returns the translated html as a string along with the verification code
func GenerateEmergencyKitHTML(ekParams *EKInput, language string) (*EKOutput, error) {
out, err := emergencykit.GenerateHTML(&emergencykit.Input{
FirstEncryptedKey: ekParams.FirstEncryptedKey,
SecondEncryptedKey: ekParams.SecondEncryptedKey,
}, language)
if err != nil {
return nil, err
}
return &EKOutput{
HTML: out.HTML,
VerificationCode: out.VerificationCode,
}, nil
}