mirror of
https://git.numenor-labs.us/dsfx.git
synced 2025-04-29 00:00:35 +00:00
23 lines
304 B
Go
23 lines
304 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
|
|
)
|
|
|
|
func main() {
|
|
key, err := identity.Generate()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
exported, err := identity.ExportPrivateKey(key)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
fmt.Fprint(os.Stdout, string(exported))
|
|
}
|