From 55b14e7fcfa3c340d27107f2b7cdf9836e7c4758 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Tue, 25 May 2021 14:38:24 +0200 Subject: Write a few more tests, rename a few functions --- src/znk.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/znk.zig') diff --git a/src/znk.zig b/src/znk.zig index 7837cc8..4ab3077 100644 --- a/src/znk.zig +++ b/src/znk.zig @@ -149,10 +149,10 @@ pub fn cmdGen(gpa: *Allocator, arena: *Allocator, args: []const []const u8) !voi } else { var kp = try nkeys.SeedKeyPair.generate(ty.?); defer kp.wipe(); - try stdout.writeAll(&kp.textSeed()); + try stdout.writeAll(&kp.seedText()); try stdout.writeAll("\n"); - var public_key = kp.textPublicKey(); + var public_key = kp.publicKeyText(); if (pub_out) { try stdout.writeAll(&public_key); try stdout.writeAll("\n"); @@ -378,12 +378,12 @@ const PrefixKeyGenerator = struct { var kp = try nkeys.SeedKeyPair.generate(self.ty); defer kp.wipe(); - var public_key = kp.textPublicKey(); + var public_key = kp.publicKeyText(); if (!mem.startsWith(u8, public_key[1..], self.prefix)) continue; if (self.done.xchg(true, .SeqCst)) return; // another thread is already done - info("{s}", .{kp.textSeed()}); + info("{s}", .{kp.seedText()}); info("{s}", .{public_key}); return; -- cgit v1.2.3