The public key serves as a checksum. To check that the `.duwif` file is not corrupted, simply generate an ed25519 keypair with the seed and check that the obtained public key matches.
Example 1:
Seed generated from scrypt with the following parameters:
| seed bytes | public key bytes | seed bytes | public key bytes |
The public key serves as a checksum. To check that the `.duwif` file is not corrupted, simply generate an ed25519 keypair with the seed and check that the obtained public key matches.