23 lines
300 B
Go
Raw Normal View History

2025-03-08 15:07:27 -05:00
package main
import (
"fmt"
"os"
2025-03-25 13:14:27 -04:00
"numenor-labs.us/dsfx/internal/lib/crypto/identity"
2025-03-08 15:07:27 -05:00
)
func main() {
2025-03-09 17:09:21 -04:00
key, err := identity.Generate()
2025-03-08 15:07:27 -05:00
if err != nil {
panic(err)
}
2025-03-10 10:29:54 -04:00
exported, err := identity.ExportPrivateKey(key)
2025-03-08 15:07:27 -05:00
if err != nil {
panic(err)
}
2025-03-10 10:29:54 -04:00
fmt.Fprint(os.Stdout, string(exported))
2025-03-08 15:07:27 -05:00
}