-
Notifications
You must be signed in to change notification settings - Fork 5
/
exporters.go
40 lines (36 loc) · 1.42 KB
/
exporters.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package main
import (
"github.com/xtaci/safebox/plugins/akt"
"github.com/xtaci/safebox/plugins/atom"
"github.com/xtaci/safebox/plugins/band"
"github.com/xtaci/safebox/plugins/btc"
"github.com/xtaci/safebox/plugins/dot"
"github.com/xtaci/safebox/plugins/eth"
"github.com/xtaci/safebox/plugins/fil"
"github.com/xtaci/safebox/plugins/kava"
"github.com/xtaci/safebox/plugins/ssh"
"github.com/xtaci/safebox/plugins/trx"
"github.com/xtaci/safebox/plugins/xem"
"github.com/xtaci/safebox/plugins/xprt"
)
type IKeyExport interface {
Name() string // name of the exporter
Desc() string // description
Export(key []byte) ([]byte, error) // export function
KeySize() int // expected key size to input to exporter
}
var exports []IKeyExport
func init() {
exports = append(exports, new(eth.EthereumExporter))
exports = append(exports, new(ssh.SSHExporter))
exports = append(exports, new(btc.BitcoinExporter))
exports = append(exports, new(atom.CosmosExporter))
exports = append(exports, new(xprt.PersistenceExporter))
exports = append(exports, new(kava.KavaExporter))
exports = append(exports, new(band.BandExporter))
exports = append(exports, new(akt.AkashExporter))
exports = append(exports, new(fil.FileCoinExporter))
exports = append(exports, new(trx.TronExporter))
exports = append(exports, new(xem.NemExporter))
exports = append(exports, new(dot.PolkadotExporter))
}