use const in hdnode_from_* methods