secureZero the account key on deinit of the account
This commit is contained in:
		
							parent
							
								
									614e2338e8
								
							
						
					
					
						commit
						17dea476e3
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -24,6 +24,7 @@ pub fn accountForId(allocator: std.mem.Allocator, account_id: []const u8) !Self | |||
| } | ||||
| 
 | ||||
| pub fn deinit(self: Self) void { | ||||
|     std.crypto.utils.secureZero(u8, self.root_account_key); | ||||
|     self.allocator.free(self.root_account_key); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue