import (
"context"
+ "encoding/hex"
"sort"
log "github.com/sirupsen/logrus"
}
type addressResp struct {
- AccountAlias string `json:"account_alias"`
- AccountID string `json:"account_id"`
- Address string `json:"address"`
- Change bool `json:"change"`
- KeyIndex uint64 `json:"-"`
+ AccountAlias string `json:"account_alias"`
+ AccountID string `json:"account_id"`
+ Address string `json:"address"`
+ ControlProgram string `json:"control_program"`
+ Change bool `json:"change"`
+ KeyIndex uint64 `json:"-"`
}
// SortByIndex implements sort.Interface for addressResp slices
continue
}
addresses = append(addresses, addressResp{
- AccountAlias: target.Alias,
- AccountID: cp.AccountID,
- Address: cp.Address,
- Change: cp.Change,
- KeyIndex: cp.KeyIndex,
+ AccountAlias: target.Alias,
+ AccountID: cp.AccountID,
+ Address: cp.Address,
+ ControlProgram: hex.EncodeToString(cp.ControlProgram),
+ Change: cp.Change,
+ KeyIndex: cp.KeyIndex,
})
}