Skip to main content

Get Ed25519 Private Key

To retrieve the Ed25519 private key of the user, you can get it using the GetEd25519PrivKey method. This private key can be used to sign transactions on Solana, Near, Algorand, and other chains that use the ed25519 curve.

Usage

UFUNCTION()
void AYourGameMode::OnWeb3AuthLoginSuccess(const FString& PrivateKey, const FString& PublicAddress)
{
// Get Ed25519 private key for Solana
FString Ed25519PrivKey = UWeb3AuthSDK::GetInstance()->GetEd25519PrivKey();
UE_LOG(LogTemp, Warning, TEXT("Solana Ed25519 Private Key: %s"), *Ed25519PrivKey);
}
On this page