Locksmith is a crypto key management & distribution service based on gRPC, Redis, dan RabbitMQ. This project initially started from BTC key generator, then developed into modern service for crypto enthusiasts dan developer.
go run main.go btc --bip44 -p=jerapahimut -i=10
save the generated keys, mnemonic, and wallet address into database bt gRPC server
go run .\main.go eth -p=hesoyam --save-remote
go run cmd/server/main.go
Download and install migrate
binary to create and run migrations
winget install golang-migrate.migrate
If winget is not available, download from: https://github.com/golang-migrate/migrate/releases → Download migrate.windows-amd64.zip, extract, and add to PATH.
Then run the command bellow to generate migration files
migrate create -ext sql -dir internal/core/migrations -seq create_wallets_table
Then run the following command to create new table
migrate -database "mysql://youruser:yourpassword@tcp(localhost:3306)/dbname" -path internal/core/migrations up
delete table
migrate -database "mysql://youruser:yourpass@tcp(localhost:3306)/dbname" -path internal/core/migrations down
Built with ❤️ by Wahyu Krisna Aji