From e9a14d7f019f264fed826a55294be14b2f37ae76 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Mon, 24 May 2021 23:31:38 +0200 Subject: Rename things once again --- 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 89fc82c..7837cc8 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.asTextSeed()); + try stdout.writeAll(&kp.textSeed()); try stdout.writeAll("\n"); - var public_key = kp.asTextPublicKey(); + var public_key = kp.textPublicKey(); 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.asTextPublicKey(); + var public_key = kp.textPublicKey(); 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.asTextSeed()}); + info("{s}", .{kp.textSeed()}); info("{s}", .{public_key}); return; -- cgit v1.2.3